Skip to contentSkip to conversation

scsi/qla1280: replace schedule_timeout() with ssleep()

PATCH In review [email protected] 2 participants 2 messages Jun 20, 2005 – Jun 30, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 scsi/qla1280: replace schedule_timeout() with ssleep()

From: Nishanth Aravamudan <[email protected]>

Use ssleep() instead of schedule_timeout to guarantee the task delays as expected.

---
 qla1280.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla1280.c +1 -1
Index: quilt/drivers/scsi/qla1280.c
===================================================================
@@ -2829,7 +2829,7 @@ qla1280_bus_reset(struct scsi_qla_host *
 		ha->bus_settings[bus].failed_reset_count++;
 	} else {
 		spin_unlock_irq(HOST_LOCK);
-		schedule_timeout(reset_delay * HZ);
+		ssleep(reset_delay);
 		spin_lock_irq(HOST_LOCK);
 
 		ha->bus_settings[bus].scsi_bus_dead = 0;

--

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"domen" == domen <[email protected]> writes:

domen> From: Nishanth Aravamudan <[email protected]> Use ssleep() domen> instead of schedule_timeout to guarantee the task delays as domen> expected.

I don't see any problem with this.

domen> Signed-off-by: Nishanth Aravamudan <[email protected]> domen> Signed-off-by: Domen Puncer <[email protected]>

Cheers,
Jes