android_kernel_motorola_sm6225/drivers/s390/scsi
Swen Schillig 94ab4b38b2 [SCSI] zfcp: avoid false ERP complete due to sema race
The ERP thread is performing a task before it is executing the
corresponding down on the semaphore. The response handler of the
just started exchange config should wait for the completion by
performing a down on this semaphore. Since this semaphore is still
positive from the ERP enqueue the handler won't wait and therefore
the exchange config will always fail leaving the adapter in error.
The problem can be solved by performing the down on the semaphore
before starting an ERP task. This is the logically correct order.
Only walk the ERP loop if there is a task to perform.

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@HansenPartnership.com>
2009-04-27 10:07:28 -05:00
..
Makefile [SCSI] zfcp: consolidate sysfs things into one file. 2008-07-12 08:22:35 -05:00
zfcp_aux.c [SCSI] zfcp: Set WKA-port to offline on adapter deactivation 2009-04-27 10:07:27 -05:00
zfcp_ccw.c [SCSI] zfcp: Set WKA-port to offline on adapter deactivation 2009-04-27 10:07:27 -05:00
zfcp_cfdc.c [SCSI] zfcp: Remove adapter list 2008-12-29 11:24:36 -06:00
zfcp_dbf.c [SCSI] zfcp: replace current ERP logging with a more convenient version 2009-03-12 12:58:20 -05:00
zfcp_dbf.h [SCSI] zfcp: replace current ERP logging with a more convenient version 2009-03-12 12:58:20 -05:00
zfcp_def.h [SCSI] zfcp: Dont block zfcp_wq with scan 2009-04-27 10:07:26 -05:00
zfcp_erp.c [SCSI] zfcp: avoid false ERP complete due to sema race 2009-04-27 10:07:28 -05:00
zfcp_ext.h [SCSI] zfcp: Set WKA-port to offline on adapter deactivation 2009-04-27 10:07:27 -05:00
zfcp_fc.c [SCSI] zfcp: Set WKA-port to offline on adapter deactivation 2009-04-27 10:07:27 -05:00
zfcp_fsf.c [SCSI] zfcp: Dont call zfcp_fsf_req_free on NULL pointer 2009-04-27 10:07:25 -05:00
zfcp_fsf.h [SCSI] zfcp: remove undefined subtype for status read response 2009-03-12 12:58:20 -05:00
zfcp_qdio.c [SCSI] zfcp: Remove PCI flag 2009-03-12 12:58:21 -05:00
zfcp_scsi.c [SCSI] zfcp: Dont block zfcp_wq with scan 2009-04-27 10:07:26 -05:00
zfcp_sysfs.c [SCSI] zfcp: replace current ERP logging with a more convenient version 2009-03-12 12:58:20 -05:00