aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-08-18 09:43:12 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 09:49:15 -0400
commit55c770fa11d21456e02dc7afb9a37404da9c7b4c (patch)
tree26d0d750f7864f6fec9acf2aa1610757e5417caf /drivers/s390/scsi/zfcp_aux.c
parent14e242ea55a8b807dc1fb7654941caf68a20cd81 (diff)
[SCSI] zfcp: Implicitly close all wka ports
An adapter shutdown implicitly closes all open ports. Make sure to mark all WKA ports as offline, not only the directory server. Also make sure that no pending wka port work is running when the adapter is being removed. Reviewed-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>
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 870fe79bc7ea..7aba6840243f 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -555,6 +555,7 @@ void zfcp_adapter_dequeue(struct zfcp_adapter *adapter)
555 555
556 cancel_work_sync(&adapter->scan_work); 556 cancel_work_sync(&adapter->scan_work);
557 cancel_work_sync(&adapter->stat_work); 557 cancel_work_sync(&adapter->stat_work);
558 zfcp_fc_wka_ports_force_offline(adapter->gs);
558 zfcp_adapter_scsi_unregister(adapter); 559 zfcp_adapter_scsi_unregister(adapter);
559 sysfs_remove_group(&adapter->ccw_device->dev.kobj, 560 sysfs_remove_group(&adapter->ccw_device->dev.kobj,
560 &zfcp_sysfs_adapter_attrs); 561 &zfcp_sysfs_adapter_attrs);