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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=80ce45fd961ba8c951adc9857bfda87102b1f5b1;p=linux-beck.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 5a3dc46008e6..ee38e6b143a4 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; }