Skip to content

Commit

Permalink
[SCSI] scsi/qla1280: replace schedule_timeout() with ssleep()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Aravamudan authored and James Bottomley committed Jun 26, 2005
1 parent 6f0dcb7 commit 117e4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla1280.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 117e4b2

Please sign in to comment.