Messages in this thread Patch in this message | | | Date | Tue, 09 Aug 2005 00:29:42 +0200 | From | domen@coderock ... | Subject | [patch 06/16] ide-tape: replace schedule_timeout() with msleep() |
| |
From: Nishanth Aravamudan <nacc@us.ibm.com>
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> --- ide-tape.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
Index: quilt/drivers/ide/ide-tape.c =================================================================== --- quilt.orig/drivers/ide/ide-tape.c +++ quilt/drivers/ide/ide-tape.c @@ -2903,8 +2903,7 @@ static int idetape_wait_ready(ide_drive_ } 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; } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |