diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_ccw.c')
-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 86c3f6539a7d..edc5015e920d 100644 --- a/drivers/s390/scsi/zfcp_ccw.c +++ b/drivers/s390/scsi/zfcp_ccw.c | |||
@@ -123,6 +123,9 @@ zfcp_ccw_remove(struct ccw_device *ccw_device) | |||
123 | 123 | ||
124 | list_for_each_entry_safe(port, p, &adapter->port_remove_lh, list) { | 124 | list_for_each_entry_safe(port, p, &adapter->port_remove_lh, list) { |
125 | list_for_each_entry_safe(unit, u, &port->unit_remove_lh, list) { | 125 | list_for_each_entry_safe(unit, u, &port->unit_remove_lh, list) { |
126 | if (atomic_test_mask(ZFCP_STATUS_UNIT_REGISTERED, | ||
127 | &unit->status)) | ||
128 | scsi_remove_device(unit->device); | ||
126 | zfcp_unit_dequeue(unit); | 129 | zfcp_unit_dequeue(unit); |
127 | } | 130 | } |
128 | zfcp_port_dequeue(port); | 131 | zfcp_port_dequeue(port); |