[SCSI] scsi/qla1280: replace schedule_timeout() with ssleep()
authorNishanth Aravamudan <nacc@us.ibm.com>
Mon, 20 Jun 2005 21:55:07 +0000 (23:55 +0200)
committerJames Bottomley <jejb@titanic.(none)>
Sun, 26 Jun 2005 13:31:26 +0000 (08:31 -0500)
Use ssleep() instead of schedule_timeout to guarantee the task
delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla1280.c

index 1a4ce1c..b993652 100644 (file)
@@ -2853,7 +2853,7 @@ qla1280_bus_reset(struct scsi_qla_host *ha, int bus)
                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;