提交 117e4b27 编写于 作者: N Nishanth Aravamudan 提交者: James Bottomley

[SCSI] scsi/qla1280: replace schedule_timeout() with ssleep()

Use ssleep() instead of schedule_timeout to guarantee the task
delays as expected.
Signed-off-by: NNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: NDomen Puncer <domen@coderock.org>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 6f0dcb72
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册