diff options
author | Peter Oberparleiter <peter.oberparleiter@de.ibm.com> | 2006-10-04 20:02:30 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-10-04 20:02:30 +0200 |
commit | 3bdc9d0b408e01c4e556daba0035ba37f603e920 (patch) | |
tree | 038f5c938c0116e3cbc9585ae76bfaf14bb24242 | |
parent | 3230015e15d4cf48e1df80fcf70d150f490cffe6 (diff) | |
download | kernel_samsung_tuna-3bdc9d0b408e01c4e556daba0035ba37f603e920.zip kernel_samsung_tuna-3bdc9d0b408e01c4e556daba0035ba37f603e920.tar.gz kernel_samsung_tuna-3bdc9d0b408e01c4e556daba0035ba37f603e920.tar.bz2 |
[S390] cio: improve unit check handling for internal operations
Retry internal operation after unit check instead of aborting them.
Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/cio/device_ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c index 8994800..84b9b18 100644 --- a/drivers/s390/cio/device_ops.c +++ b/drivers/s390/cio/device_ops.c @@ -288,10 +288,10 @@ ccw_device_wake_up(struct ccw_device *cdev, unsigned long ip, struct irb *irb) if (cdev->private->flags.doverify || cdev->private->state == DEV_STATE_VERIFY) cdev->private->intparm = -EAGAIN; - if ((irb->scsw.dstat & DEV_STAT_UNIT_CHECK) && - !(irb->ecw[0] & - (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ))) - cdev->private->intparm = -EAGAIN; + else if ((irb->scsw.dstat & DEV_STAT_UNIT_CHECK) && + !(irb->ecw[0] & + (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ))) + cdev->private->intparm = -EAGAIN; else if ((irb->scsw.dstat & DEV_STAT_ATTENTION) && (irb->scsw.dstat & DEV_STAT_DEV_END) && (irb->scsw.dstat & DEV_STAT_UNIT_EXCEP)) |