aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2010-07-16 09:37:35 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:48:46 -0400
commit1bf3ff02ca6247b2d7c9ebda93002392bf60a61d (patch)
tree569683190acd2ac3da8489bdcbd0f25f80c73b3e /drivers/s390/scsi/zfcp_def.h
parent674c3a993c278b7469e1cf12bfc13e6838dfd877 (diff)
[SCSI] zfcp: Remove SCSI device when removing unit
Configuring a LUN in zfcp, also creates a SCSI device. For consistency, it makes sense to remove the SCSI device when the LUN is deconfigured. Replace the flush_work with the call to scsi_remove_device: scsi_remove_device also takes the scan_mutex that synchronizes itself with any long running device discovery. 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_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index 9fa1b064893e..86a8725430a4 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -212,6 +212,7 @@ struct zfcp_port {
212 struct work_struct test_link_work; 212 struct work_struct test_link_work;
213 struct work_struct rport_work; 213 struct work_struct rport_work;
214 enum { RPORT_NONE, RPORT_ADD, RPORT_DEL } rport_task; 214 enum { RPORT_NONE, RPORT_ADD, RPORT_DEL } rport_task;
215 unsigned int starget_id;
215}; 216};
216 217
217struct zfcp_unit { 218struct zfcp_unit {