linux/drivers/s390
Christof Schmitt 5f852be9e1 [SCSI] zfcp: Fix deadlock between zfcp ERP and SCSI
The SCSI stack requires low level drivers to register and
unregister devices. For zfcp this leads to the situation where
zfcp calls the SCSI stack, the SCSI tries to scan the new device
and the scan SCSI command fails. This would require the zfcp erp,
but the erp thread is already blocked in the register call.

The fix is to make sure that the calls from the ERP thread to
the SCSI stack do not block the ERP thread. In detail:
1) Use a workqueue to avoid blocking of the scsi_scan_target calls.
2) When removing a unit make sure that no scsi_scan_target call is
   pending.
3) Replace scsi_flush_work with scsi_target_unblock. This avoids
   blocking and has the same result.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-05-08 11:55:33 -05:00
..
block [S390] dasd: New read device characteristics and read configuration data. 2007-05-04 18:48:26 +02:00
char [S390] tape: New read configuration data. 2007-05-04 18:48:26 +02:00
cio [S390] qdio: make qdio statistics SMP-capable 2007-05-04 18:48:25 +02:00
crypto uevent: use add_uevent_var() instead of open coding it 2007-04-27 10:57:29 -07:00
net [S390] qeth: New read configuration data. 2007-05-04 18:48:26 +02:00
scsi [SCSI] zfcp: Fix deadlock between zfcp ERP and SCSI 2007-05-08 11:55:33 -05:00
ebcdic.c
Kconfig [S390] Convert memory detection into C code. 2007-02-05 21:18:37 +01:00
Makefile [S390] Calibrate delay and bogomips. 2007-02-05 21:18:31 +01:00
s390_rdev.c [PATCH] s390: kzalloc() conversion in drivers/s390 2006-03-24 07:33:18 -08:00
s390mach.c [S390] cio: replace subchannel evaluation queue with bitmap 2007-04-27 16:01:40 +02:00
s390mach.h [S390] ETR support. 2007-02-05 21:18:19 +01:00
sysinfo.c [S390] Processor degradation notification. 2007-04-27 16:01:46 +02:00