summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2005-09-10 00:27:08 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 10:06:33 -0700
commit80ce45fd961ba8c951adc9857bfda87102b1f5b1 (patch)
tree8b28ce95b92068340ea06a6cbc91853bc8e9675b
parent0cdca3f9806a3dbaa07b5e8175000cd513ba92d4 (diff)
downloadblackbird-obmc-linux-80ce45fd961ba8c951adc9857bfda87102b1f5b1.tar.gz
blackbird-obmc-linux-80ce45fd961ba8c951adc9857bfda87102b1f5b1.zip
[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 <nacc@us.ibm.com> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/ide/ide-tape.c3
1 files changed, 1 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud