]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] zfcp: fix deadlock between wq triggered port scan and ERP
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 26 Nov 2008 17:07:40 +0000 (18:07 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 1 Dec 2008 16:18:04 +0000 (10:18 -0600)
commitfca55b6fb587e42c7761ee30bd1a6c313a9270c9
tree334aaea4b8cd1c3a6d9dca3a0131005d49047358
parent0ac55aa90f2c3bd08e57e52a513b82b18ce0a5bc
[SCSI] zfcp: fix deadlock between wq triggered port scan and ERP

Waiting for the ERP to be finished in a task running in the global
kernel work-queue is a bad idea, especially if the ERP needs to run
another job in this work-queue before it can finish. -> deadlock.

This patch removes the necessity to wait for a finished ERP from the
scan task and moves the job scheduling to the end of the ERP.

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>
drivers/s390/scsi/zfcp_erp.c
drivers/s390/scsi/zfcp_fc.c