diff options
-rw-r--r-- | drivers/s390/scsi/zfcp_ccw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_ccw.c b/drivers/s390/scsi/zfcp_ccw.c index e01cbf152a81..a6a29a24d28a 100644 --- a/drivers/s390/scsi/zfcp_ccw.c +++ b/drivers/s390/scsi/zfcp_ccw.c | |||
@@ -120,6 +120,9 @@ zfcp_ccw_remove(struct ccw_device *ccw_device) | |||
120 | 120 | ||
121 | list_for_each_entry_safe(port, p, &adapter->port_remove_lh, list) { | 121 | list_for_each_entry_safe(port, p, &adapter->port_remove_lh, list) { |
122 | list_for_each_entry_safe(unit, u, &port->unit_remove_lh, list) { | 122 | list_for_each_entry_safe(unit, u, &port->unit_remove_lh, list) { |
123 | if (atomic_test_mask(ZFCP_STATUS_UNIT_REGISTERED, | ||
124 | &unit->status)) | ||
125 | scsi_remove_device(unit->device); | ||
123 | zfcp_unit_dequeue(unit); | 126 | zfcp_unit_dequeue(unit); |
124 | } | 127 | } |
125 | zfcp_port_dequeue(port); | 128 | zfcp_port_dequeue(port); |