diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_unit.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_unit.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/s390/scsi/zfcp_unit.c b/drivers/s390/scsi/zfcp_unit.c index e210c41ee389..1119c535a667 100644 --- a/drivers/s390/scsi/zfcp_unit.c +++ b/drivers/s390/scsi/zfcp_unit.c | |||
@@ -134,14 +134,7 @@ int zfcp_unit_add(struct zfcp_port *port, u64 fcp_lun) | |||
134 | unit->fcp_lun = fcp_lun; | 134 | unit->fcp_lun = fcp_lun; |
135 | unit->dev.parent = &port->dev; | 135 | unit->dev.parent = &port->dev; |
136 | unit->dev.release = zfcp_unit_release; | 136 | unit->dev.release = zfcp_unit_release; |
137 | unit->latencies.write.channel.min = 0xFFFFFFFF; | ||
138 | unit->latencies.write.fabric.min = 0xFFFFFFFF; | ||
139 | unit->latencies.read.channel.min = 0xFFFFFFFF; | ||
140 | unit->latencies.read.fabric.min = 0xFFFFFFFF; | ||
141 | unit->latencies.cmd.channel.min = 0xFFFFFFFF; | ||
142 | unit->latencies.cmd.fabric.min = 0xFFFFFFFF; | ||
143 | INIT_WORK(&unit->scsi_work, zfcp_unit_scsi_scan_work); | 137 | INIT_WORK(&unit->scsi_work, zfcp_unit_scsi_scan_work); |
144 | spin_lock_init(&unit->latencies.lock); | ||
145 | 138 | ||
146 | if (dev_set_name(&unit->dev, "0x%016llx", | 139 | if (dev_set_name(&unit->dev, "0x%016llx", |
147 | (unsigned long long) fcp_lun)) { | 140 | (unsigned long long) fcp_lun)) { |
@@ -165,9 +158,6 @@ int zfcp_unit_add(struct zfcp_port *port, u64 fcp_lun) | |||
165 | list_add_tail(&unit->list, &port->unit_list); | 158 | list_add_tail(&unit->list, &port->unit_list); |
166 | write_unlock_irq(&port->unit_list_lock); | 159 | write_unlock_irq(&port->unit_list_lock); |
167 | 160 | ||
168 | atomic_set_mask(ZFCP_STATUS_COMMON_RUNNING, &unit->status); | ||
169 | zfcp_erp_unit_reopen(unit, 0, "syuas_1", NULL); | ||
170 | zfcp_erp_wait(unit->port->adapter); | ||
171 | zfcp_unit_scsi_scan(unit); | 161 | zfcp_unit_scsi_scan(unit); |
172 | 162 | ||
173 | return 0; | 163 | return 0; |
@@ -248,7 +238,6 @@ int zfcp_unit_remove(struct zfcp_port *port, u64 fcp_lun) | |||
248 | 238 | ||
249 | put_device(&unit->dev); | 239 | put_device(&unit->dev); |
250 | 240 | ||
251 | zfcp_erp_unit_shutdown(unit, 0, "unrem_1", NULL); | ||
252 | zfcp_device_unregister(&unit->dev, &zfcp_sysfs_unit_attrs); | 241 | zfcp_device_unregister(&unit->dev, &zfcp_sysfs_unit_attrs); |
253 | 242 | ||
254 | return 0; | 243 | return 0; |