diff options
author | Peter Oberparleiter <peter.oberparleiter@de.ibm.com> | 2006-10-04 14:02:30 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-10-04 14:02:30 -0400 |
commit | 3bdc9d0b408e01c4e556daba0035ba37f603e920 (patch) | |
tree | 038f5c938c0116e3cbc9585ae76bfaf14bb24242 /drivers | |
parent | 3230015e15d4cf48e1df80fcf70d150f490cffe6 (diff) |
[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>
Diffstat (limited to 'drivers')
-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 8994800dba4a..84b9b18eabc2 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) | |||
288 | if (cdev->private->flags.doverify || | 288 | if (cdev->private->flags.doverify || |
289 | cdev->private->state == DEV_STATE_VERIFY) | 289 | cdev->private->state == DEV_STATE_VERIFY) |
290 | cdev->private->intparm = -EAGAIN; | 290 | cdev->private->intparm = -EAGAIN; |
291 | if ((irb->scsw.dstat & DEV_STAT_UNIT_CHECK) && | 291 | else if ((irb->scsw.dstat & DEV_STAT_UNIT_CHECK) && |
292 | !(irb->ecw[0] & | 292 | !(irb->ecw[0] & |
293 | (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ))) | 293 | (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ))) |
294 | cdev->private->intparm = -EAGAIN; | 294 | cdev->private->intparm = -EAGAIN; |
295 | else if ((irb->scsw.dstat & DEV_STAT_ATTENTION) && | 295 | else if ((irb->scsw.dstat & DEV_STAT_ATTENTION) && |
296 | (irb->scsw.dstat & DEV_STAT_DEV_END) && | 296 | (irb->scsw.dstat & DEV_STAT_DEV_END) && |
297 | (irb->scsw.dstat & DEV_STAT_UNIT_EXCEP)) | 297 | (irb->scsw.dstat & DEV_STAT_UNIT_EXCEP)) |