aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio
diff options
context:
space:
mode:
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>2006-06-29 08:56:38 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-06-29 08:56:38 -0400
commitda039bd1e872b89e1c92c6c891c43b96d0a1bc41 (patch)
tree80e721d93ef558600c7a513cc20ab50b5ca7b5a9 /drivers/s390/cio
parentd7d23702554dc13297cff5eaf7a551c802daeab3 (diff)
[S390] cio long busy in read configuration data.
Trying to set a DASD root device online can fail under some circumstances with the message "Read configuration data returned error -5". The cause is that read configuration data incorrectly aborts with -EIO when it encounters a temporary busy condition at a storage server. Perform retry when encountering temporary busy conditions. Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r--drivers/s390/cio/device_ops.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c
index 795abb5a65ba..5c9904b418e1 100644
--- a/drivers/s390/cio/device_ops.c
+++ b/drivers/s390/cio/device_ops.c
@@ -270,7 +270,8 @@ ccw_device_wake_up(struct ccw_device *cdev, unsigned long ip, struct irb *irb)
270 * We didn't get channel end / device end. Check if path 270 * We didn't get channel end / device end. Check if path
271 * verification has been started; we can retry after it has 271 * verification has been started; we can retry after it has
272 * finished. We also retry unit checks except for command reject 272 * finished. We also retry unit checks except for command reject
273 * or intervention required. 273 * or intervention required. Also check for long busy
274 * conditions.
274 */ 275 */
275 if (cdev->private->flags.doverify || 276 if (cdev->private->flags.doverify ||
276 cdev->private->state == DEV_STATE_VERIFY) 277 cdev->private->state == DEV_STATE_VERIFY)
@@ -279,6 +280,10 @@ ccw_device_wake_up(struct ccw_device *cdev, unsigned long ip, struct irb *irb)
279 !(irb->ecw[0] & 280 !(irb->ecw[0] &
280 (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ))) 281 (SNS0_CMD_REJECT | SNS0_INTERVENTION_REQ)))
281 cdev->private->intparm = -EAGAIN; 282 cdev->private->intparm = -EAGAIN;
283 else if ((irb->scsw.dstat & DEV_STAT_ATTENTION) &&
284 (irb->scsw.dstat & DEV_STAT_DEV_END) &&
285 (irb->scsw.dstat & DEV_STAT_UNIT_EXCEP))
286 cdev->private->intparm = -EAGAIN;
282 else 287 else
283 cdev->private->intparm = -EIO; 288 cdev->private->intparm = -EIO;
284 289