Commit 3bdc9d0b authored by Peter Oberparleiter's avatar Peter Oberparleiter Committed by Martin Schwidefsky

[S390] cio: improve unit check handling for internal operations

Retry internal operation after unit check instead of aborting them.
Signed-off-by: default avatarPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 3230015e
...@@ -288,7 +288,7 @@ ccw_device_wake_up(struct ccw_device *cdev, unsigned long ip, struct irb *irb) ...@@ -288,7 +288,7 @@ ccw_device_wake_up(struct ccw_device *cdev, unsigned long ip, struct irb *irb)
if (cdev->private->flags.doverify || if (cdev->private->flags.doverify ||
cdev->private->state == DEV_STATE_VERIFY) cdev->private->state == DEV_STATE_VERIFY)
cdev->private->intparm = -EAGAIN; cdev->private->intparm = -EAGAIN;
if ((irb->scsw.dstat & DEV_STAT_UNIT_CHECK) && else if ((irb->scsw.dstat & DEV_STAT_UNIT_CHECK) &&
!(irb->ecw[0] & !(irb->ecw[0] &
(SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ))) (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ)))
cdev->private->intparm = -EAGAIN; cdev->private->intparm = -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment