aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2009-03-02 07:09:10 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-12 13:58:22 -0400
commit947a9aca86eb2a921ed7aa92397cf7f38b896f90 (patch)
treecfb2b6e86b77d7eeea5d73e86bc5f2905e919092 /drivers/s390/scsi/zfcp_aux.c
parent2cb5b2ca6dddcdfb0e220f18b4612890a23a1c92 (diff)
[SCSI] zfcp: fix queue, scheduled work processing.
Ensure the refcounting is correct even if we were not able to schedule a work. In addition we have to make sure no scheduled work is pending while we're dequeing the adapter from the systems environment. 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>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index b2be6593b563..c4d07be6279a 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -554,6 +554,7 @@ void zfcp_adapter_dequeue(struct zfcp_adapter *adapter)
554 554
555 cancel_work_sync(&adapter->scan_work); 555 cancel_work_sync(&adapter->scan_work);
556 cancel_work_sync(&adapter->stat_work); 556 cancel_work_sync(&adapter->stat_work);
557 cancel_delayed_work_sync(&adapter->nsp.work);
557 zfcp_adapter_scsi_unregister(adapter); 558 zfcp_adapter_scsi_unregister(adapter);
558 sysfs_remove_group(&adapter->ccw_device->dev.kobj, 559 sysfs_remove_group(&adapter->ccw_device->dev.kobj,
559 &zfcp_sysfs_adapter_attrs); 560 &zfcp_sysfs_adapter_attrs);