[patch 3/7] scsi/dpt_i2o: replace schedule_timeout() with msleep_interruptible()

domen
2005-01-11T23:23:03Z

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 <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
---

kj-domen/drivers/scsi/dpt_i2o.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/dpt_i2o.c~msleep_interruptible-drivers_scsi_dpt_i2o drivers/scsi/dpt_i2o.c
--- kj/drivers/scsi/dpt_i2o.c~msleep_interruptible-drivers_scsi_dpt_i2o 2005-01-10 18:00:12.000000000 +0100
+++ kj-domen/drivers/scsi/dpt_i2o.c 2005-01-10 18:00:12.000000000 +0100
@@ -1178,7 +1178,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);
_