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]>
---


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

diff -puN drivers/scsi/qla1280.c~ssleep-drivers_scsi_qla1280 
drivers/scsi/qla1280.c
--- kj/drivers/scsi/qla1280.c~ssleep-drivers_scsi_qla1280       2005-03-05 
16:11:17.000000000 +0100
+++ kj-domen/drivers/scsi/qla1280.c     2005-03-05 16:11:17.000000000 +0100
@@ -2939,7 +2939,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;
_
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to