scsi/dpt_i2o: replace schedule_timeout() with msleep_interruptible()
PATCH 8/10 scsi/dpt_i2o: 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.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-max/drivers/scsi/dpt_i2o.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/dpt_i2o.c renamed from drivers/scsi/dpt_i2o.c~msleep_interruptible-drivers_scsi_dpt_i2o +1 -1
@@ -1179,7 +1179,7 @@ static int adpt_i2o_post_wait(adpt_hba*// dangerous. status = -ETIME ; } -schedule_timeout (timeout*HZ ); +msleep_interruptible (timeout *1000 ); }if (pHba->host)spin_lock_irq (pHba->host->host_lock);
_