projects/linux·commit 3230015e

[S390] cio: add timeout handler for internal operations.

3230015e · Peter Oberparleiter <[email protected]> · 2006-10-04 20:02:26 +02:00

Add timeout handler for common-I/O-layer-internal I/O operations.

Signed-off-by: Peter Oberparleiter <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
Commit
3230015e15d4cf48e1df80fcf70d150f490cffe6
Parents
0b2b6e1d

Changes

1 files changed · +3 −0

FileStatusAddDelContent
drivers/s390/cio/device_ops.cmodified+3−0View file

drivers/s390/cio/device_ops.c

View file
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c
index e7eeaf1..8994800 100644
--- a/drivers/s390/cio/device_ops.c
+++ b/drivers/s390/cio/device_ops.c
@@ -312,7 +312,10 @@ __ccw_device_retry_loop(struct ccw_device *cdev, struct ccw1 *ccw, long magic, _
sch = to_subchannel(cdev->dev.parent);
do {
+ ccw_device_set_timeout(cdev, 60 * HZ);
ret = cio_start (sch, ccw, lpm);
+ if (ret != 0)
+ ccw_device_set_timeout(cdev, 0);
if (ret == -EBUSY) {
/* Try again later. */
spin_unlock_irq(&sch->lock);