diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2006-12-04 09:41:01 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-12-04 09:41:01 -0500 |
commit | 24cb5b4846ebae5543869b5c596c2650f380df53 (patch) | |
tree | fd45cf7fab0a065c7529c5811e3258a66e877095 /drivers/s390/cio/device_fsm.c | |
parent | 9163bb2e556f6c7879961df94540f0879db4717b (diff) |
[S390] cio: Use path verification for last path gone after vary off.
If the last path to a device is gone after a chpid has been varied
off, putting it on the slow queue doesn't prevent a device driver
from still attempting to use it (it may stay on the slow queue for a
long time). Instead, trigger a verify event which will prevent I/O
attempts from the device driver immediately.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/device_fsm.c')
-rw-r--r-- | drivers/s390/cio/device_fsm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/s390/cio/device_fsm.c b/drivers/s390/cio/device_fsm.c index de3d0857db9f..7665000e8dfe 100644 --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c | |||
@@ -59,6 +59,17 @@ device_set_disconnected(struct subchannel *sch) | |||
59 | cdev->private->state = DEV_STATE_DISCONNECTED; | 59 | cdev->private->state = DEV_STATE_DISCONNECTED; |
60 | } | 60 | } |
61 | 61 | ||
62 | int device_trigger_verify(struct subchannel *sch) | ||
63 | { | ||
64 | struct ccw_device *cdev; | ||
65 | |||
66 | cdev = sch->dev.driver_data; | ||
67 | if (!cdev || !cdev->online) | ||
68 | return -EINVAL; | ||
69 | dev_fsm_event(cdev, DEV_EVENT_VERIFY); | ||
70 | return 0; | ||
71 | } | ||
72 | |||
62 | /* | 73 | /* |
63 | * Timeout function. It just triggers a DEV_EVENT_TIMEOUT. | 74 | * Timeout function. It just triggers a DEV_EVENT_TIMEOUT. |
64 | */ | 75 | */ |