diff options
Diffstat (limited to 'drivers/scsi/osst.c')
-rw-r--r-- | drivers/scsi/osst.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 1cf11c3322fb..d9946bd95492 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c | |||
@@ -862,8 +862,7 @@ static int osst_recover_wait_frame(struct osst_tape * STp, struct scsi_request * | |||
862 | retval = osst_write_error_recovery(STp, aSRpnt, 0); | 862 | retval = osst_write_error_recovery(STp, aSRpnt, 0); |
863 | break; | 863 | break; |
864 | } | 864 | } |
865 | set_current_state(TASK_INTERRUPTIBLE); | 865 | schedule_timeout_interruptible(HZ / OSST_POLL_PER_SEC); |
866 | schedule_timeout (HZ / OSST_POLL_PER_SEC); | ||
867 | 866 | ||
868 | STp->buffer->b_data = mybuf; STp->buffer->buffer_size = 24; | 867 | STp->buffer->b_data = mybuf; STp->buffer->buffer_size = 24; |
869 | memset(cmd, 0, MAX_COMMAND_SIZE); | 868 | memset(cmd, 0, MAX_COMMAND_SIZE); |
@@ -1558,8 +1557,7 @@ static int osst_reposition_and_retry(struct osst_tape * STp, struct scsi_request | |||
1558 | osst_set_frame_position(STp, aSRpnt, frame + skip, 1); | 1557 | osst_set_frame_position(STp, aSRpnt, frame + skip, 1); |
1559 | flag = 0; | 1558 | flag = 0; |
1560 | attempts--; | 1559 | attempts--; |
1561 | set_current_state(TASK_INTERRUPTIBLE); | 1560 | schedule_timeout_interruptible(msecs_to_jiffies(100)); |
1562 | schedule_timeout(HZ / 10); | ||
1563 | } | 1561 | } |
1564 | if (osst_get_frame_position(STp, aSRpnt) < 0) { /* additional write error */ | 1562 | if (osst_get_frame_position(STp, aSRpnt) < 0) { /* additional write error */ |
1565 | #if DEBUG | 1563 | #if DEBUG |
@@ -1620,8 +1618,7 @@ static int osst_reposition_and_retry(struct osst_tape * STp, struct scsi_request | |||
1620 | debugging = 0; | 1618 | debugging = 0; |
1621 | } | 1619 | } |
1622 | #endif | 1620 | #endif |
1623 | set_current_state(TASK_INTERRUPTIBLE); | 1621 | schedule_timeout_interruptible(msecs_to_jiffies(100)); |
1624 | schedule_timeout(HZ / 10); | ||
1625 | } | 1622 | } |
1626 | printk(KERN_ERR "%s:E: Failed to find valid tape media\n", name); | 1623 | printk(KERN_ERR "%s:E: Failed to find valid tape media\n", name); |
1627 | #if DEBUG | 1624 | #if DEBUG |