diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2009-03-31 13:16:05 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-31 13:17:06 -0400 |
commit | 47593bfa1056d306fde067b28dd8617009be4121 (patch) | |
tree | 3bbad2e48bb773ac4b6f8e0efb4214c75cede7f5 /drivers/s390/scsi/zfcp_ccw.c | |
parent | c4621a62649a56f155a96dfc5de479be226f0768 (diff) |
[S390] cio: introduce notifier for boxed state
If a ccw device did not respond in time during internal io, we set it
into boxed state. With this patch we have the following behaviour:
* the ccw driver will get a notification if the device was online and
goes into the boxed state
* if the device was disconnected and got boxed nothing special is to be
done (it will be handled in reprobing later)
* if the device got boxed while initial sensing it will be unregistered
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ccw.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_ccw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_ccw.c b/drivers/s390/scsi/zfcp_ccw.c index 1fe1e2eda512..cfb0dcb6e3ff 100644 --- a/drivers/s390/scsi/zfcp_ccw.c +++ b/drivers/s390/scsi/zfcp_ccw.c | |||
@@ -176,6 +176,11 @@ static int zfcp_ccw_notify(struct ccw_device *ccw_device, int event) | |||
176 | zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED, | 176 | zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED, |
177 | "ccnoti4", NULL); | 177 | "ccnoti4", NULL); |
178 | break; | 178 | break; |
179 | case CIO_BOXED: | ||
180 | dev_warn(&adapter->ccw_device->dev, | ||
181 | "The ccw device did not respond in time.\n"); | ||
182 | zfcp_erp_adapter_shutdown(adapter, 0, "ccnoti5", NULL); | ||
183 | break; | ||
179 | } | 184 | } |
180 | return 1; | 185 | return 1; |
181 | } | 186 | } |