scsi/st: replace schedule_timeout() with msleep_interruptible()
Subsystems (2)
PATCH 10/10 scsi/st: replace schedule_timeout() with msleep_interruptible()
Any comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
Acked-by Kai Makisara <[email protected]>
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-max/drivers/scsi/st.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/st.c renamed from drivers/scsi/st.c~msleep_interruptible-drivers_scsi_st +1 -2
@@ -760,8 +760,7 @@ static int test_ready(Scsi_Tape *STp, inif (scode ==NOT_READY ) {if (waits < max_wait) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (HZ ); +msleep_interruptible (1000 );if (signal_pending (current)) { retval = (-EINTR );break ;
_