mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: Maximilian Attems <[email protected]> Signed-off-by: Domen Puncer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0cdca3f980
commit
80ce45fd96
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue