diff options
author | Martin Peschke <mp3@de.ibm.com> | 2008-03-27 09:22:03 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 13:19:04 -0400 |
commit | 9467a9b3efdd9041202f71cc270bda827a7ec777 (patch) | |
tree | 9e7b8e167da9aa5065b1f7ed1d2a1ab9c2ad47da /drivers/s390/scsi/zfcp_ccw.c | |
parent | 698ec01635819c5ae60090bb4efcbeffc41642fb (diff) |
[SCSI] zfcp: Trace all triggers of error recovery activity
This patch allows any recovery event to be traced back to an exact
cause, e.g. a particular request identified by an id (address).
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ccw.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_ccw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/s390/scsi/zfcp_ccw.c b/drivers/s390/scsi/zfcp_ccw.c index dd40b1c350b9..8edd90583cd4 100644 --- a/drivers/s390/scsi/zfcp_ccw.c +++ b/drivers/s390/scsi/zfcp_ccw.c | |||
@@ -172,7 +172,7 @@ zfcp_ccw_set_online(struct ccw_device *ccw_device) | |||
172 | 172 | ||
173 | zfcp_erp_modify_adapter_status(adapter, 10, 0, | 173 | zfcp_erp_modify_adapter_status(adapter, 10, 0, |
174 | ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET); | 174 | ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET); |
175 | zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED); | 175 | zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED, 85, 0); |
176 | zfcp_erp_wait(adapter); | 176 | zfcp_erp_wait(adapter); |
177 | goto out; | 177 | goto out; |
178 | 178 | ||
@@ -197,7 +197,7 @@ zfcp_ccw_set_offline(struct ccw_device *ccw_device) | |||
197 | 197 | ||
198 | down(&zfcp_data.config_sema); | 198 | down(&zfcp_data.config_sema); |
199 | adapter = dev_get_drvdata(&ccw_device->dev); | 199 | adapter = dev_get_drvdata(&ccw_device->dev); |
200 | zfcp_erp_adapter_shutdown(adapter, 0); | 200 | zfcp_erp_adapter_shutdown(adapter, 0, 86, 0); |
201 | zfcp_erp_wait(adapter); | 201 | zfcp_erp_wait(adapter); |
202 | zfcp_erp_thread_kill(adapter); | 202 | zfcp_erp_thread_kill(adapter); |
203 | up(&zfcp_data.config_sema); | 203 | up(&zfcp_data.config_sema); |
@@ -224,13 +224,13 @@ zfcp_ccw_notify(struct ccw_device *ccw_device, int event) | |||
224 | ZFCP_LOG_NORMAL("adapter %s: device gone\n", | 224 | ZFCP_LOG_NORMAL("adapter %s: device gone\n", |
225 | zfcp_get_busid_by_adapter(adapter)); | 225 | zfcp_get_busid_by_adapter(adapter)); |
226 | debug_text_event(adapter->erp_dbf,1,"dev_gone"); | 226 | debug_text_event(adapter->erp_dbf,1,"dev_gone"); |
227 | zfcp_erp_adapter_shutdown(adapter, 0); | 227 | zfcp_erp_adapter_shutdown(adapter, 0, 87, 0); |
228 | break; | 228 | break; |
229 | case CIO_NO_PATH: | 229 | case CIO_NO_PATH: |
230 | ZFCP_LOG_NORMAL("adapter %s: no path\n", | 230 | ZFCP_LOG_NORMAL("adapter %s: no path\n", |
231 | zfcp_get_busid_by_adapter(adapter)); | 231 | zfcp_get_busid_by_adapter(adapter)); |
232 | debug_text_event(adapter->erp_dbf,1,"no_path"); | 232 | debug_text_event(adapter->erp_dbf,1,"no_path"); |
233 | zfcp_erp_adapter_shutdown(adapter, 0); | 233 | zfcp_erp_adapter_shutdown(adapter, 0, 88, 0); |
234 | break; | 234 | break; |
235 | case CIO_OPER: | 235 | case CIO_OPER: |
236 | ZFCP_LOG_NORMAL("adapter %s: operational again\n", | 236 | ZFCP_LOG_NORMAL("adapter %s: operational again\n", |
@@ -240,7 +240,7 @@ zfcp_ccw_notify(struct ccw_device *ccw_device, int event) | |||
240 | ZFCP_STATUS_COMMON_RUNNING, | 240 | ZFCP_STATUS_COMMON_RUNNING, |
241 | ZFCP_SET); | 241 | ZFCP_SET); |
242 | zfcp_erp_adapter_reopen(adapter, | 242 | zfcp_erp_adapter_reopen(adapter, |
243 | ZFCP_STATUS_COMMON_ERP_FAILED); | 243 | ZFCP_STATUS_COMMON_ERP_FAILED, 89, 0); |
244 | break; | 244 | break; |
245 | } | 245 | } |
246 | zfcp_erp_wait(adapter); | 246 | zfcp_erp_wait(adapter); |
@@ -272,7 +272,7 @@ zfcp_ccw_shutdown(struct ccw_device *cdev) | |||
272 | 272 | ||
273 | down(&zfcp_data.config_sema); | 273 | down(&zfcp_data.config_sema); |
274 | adapter = dev_get_drvdata(&cdev->dev); | 274 | adapter = dev_get_drvdata(&cdev->dev); |
275 | zfcp_erp_adapter_shutdown(adapter, 0); | 275 | zfcp_erp_adapter_shutdown(adapter, 0, 90, 0); |
276 | zfcp_erp_wait(adapter); | 276 | zfcp_erp_wait(adapter); |
277 | up(&zfcp_data.config_sema); | 277 | up(&zfcp_data.config_sema); |
278 | } | 278 | } |