aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device_ops.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2008-04-17 01:46:00 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2008-04-17 01:46:57 -0400
commitfe6173d9b33dba18ec462051750fb1b9abcd796d (patch)
tree393cf3a058e880365b069915d6cb8bad96ec36aa /drivers/s390/cio/device_ops.c
parent22806dc1a8ffd88a7c7bdd070879e6e323db496a (diff)
[S390] cio: Trigger verification on device/path not operational.
Currently, we don't do much on no path or no device situations during normal user I/O, since we rely on reports regarding those events by the machine. If we trigger a path verification to bring our device state up-to-date, we (a) may recover from path failures earlier and (b) better handle situations where the hardware/hypervisor doesn't give us enough notifications. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/device_ops.c')
-rw-r--r--drivers/s390/cio/device_ops.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c
index 49b58eb0fab8..a1718a0aa539 100644
--- a/drivers/s390/cio/device_ops.c
+++ b/drivers/s390/cio/device_ops.c
@@ -193,8 +193,15 @@ int ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa,
193 return -EACCES; 193 return -EACCES;
194 } 194 }
195 ret = cio_start_key (sch, cpa, lpm, key); 195 ret = cio_start_key (sch, cpa, lpm, key);
196 if (ret == 0) 196 switch (ret) {
197 case 0:
197 cdev->private->intparm = intparm; 198 cdev->private->intparm = intparm;
199 break;
200 case -EACCES:
201 case -ENODEV:
202 dev_fsm_event(cdev, DEV_EVENT_VERIFY);
203 break;
204 }
198 return ret; 205 return ret;
199} 206}
200 207