Skip to contentSkip to conversation

scsi/dpt_i2o: replace schedule_timeout() with msleep_interruptible()

PATCH In review [email protected] 1 participant 1 message Jan 11, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 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.

---

 kj-domen/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
diff -puN drivers/scsi/dpt_i2o.c~msleep_interruptible-drivers_scsi_dpt_i2o drivers/scsi/dpt_i2o.c
@@ -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);

_