From: Nishanth Aravamudan Date: Sat, 10 Sep 2005 07:27:08 +0000 (-0700) Subject: [PATCH] janitor: ide-tape: replace schedule_timeout() with msleep() X-Git-Tag: v2.6.14-rc1~172 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=80ce45fd961ba8c951adc9857bfda87102b1f5b1;p=linux-2.6-omap-h63xx.git [PATCH] janitor: ide-tape: replace schedule_timeout() with msleep() Uses msleep() instead of schedule_timeout() to guarantee the task delays at least the desired time amount. Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 5a3dc46008e..ee38e6b143a 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -2903,8 +2903,7 @@ static int idetape_wait_ready(ide_drive_t *drive, unsigned long timeout) } else if (!(tape->sense_key == 2 && tape->asc == 4 && (tape->ascq == 1 || tape->ascq == 8))) return -EIO; - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(HZ / 10); + msleep(100); } return -EIO; }