scsi/qla1280: replace schedule_timeout() with ssleep()
Subsystems (2)
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.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
--- qla1280.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla1280.c +1 -1
@@ -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 ;
--
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]>
Signed-off-by Jes Sorensen <[email protected]>
Cheers,
Jes