[SCSI] zfcp: Assign scheduled work to driver queue
authorSwen Schillig <swen@vnet.ibm.com>
Tue, 24 Nov 2009 15:54:06 +0000 (16:54 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:02:08 +0000 (12:02 -0600)
commit9eae07ef6bb5988163d8bb82cd952905db47b721
tree97a7f5c98c760b6232e5cdb60e5da58414079981
parent6b183334c23969d52d4d9f775da554480d05ca4d
[SCSI] zfcp: Assign scheduled work to driver queue

The port_scan work was scheduled to the work_queue provided by the
kernel. This resulted on SMP systems to a likely situation that more
than one scan_work were processed in parallel. This is not required
and openes the possibility of race conditions between the removal of
invalid ports and the enqueue of just scanned ports.  This patch
synchronizes the scan_work tasks by scheduling them to adapter local
work_queue.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/s390/scsi/zfcp_aux.c
drivers/s390/scsi/zfcp_erp.c
drivers/s390/scsi/zfcp_ext.h
drivers/s390/scsi/zfcp_fc.c
drivers/s390/scsi/zfcp_fsf.c
drivers/s390/scsi/zfcp_sysfs.c
This page took 0.026187 seconds and 5 git commands to generate.