scsi/qla_init: replace schedule_timeout() with msleep()
Subsystems (2)
PATCH 3/7 scsi/qla_init: replace schedule_timeout() with msleep()
Error in the patch, corrected below. Thanks, Domen.
Description: Replaces schedule_timeout() with msleep() to guarantee task delays as desired.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-rc1-bk7-max/drivers/scsi/qla2xxx/qla_init.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_init.c renamed from drivers/scsi/qla2xxx/qla_init.c~msleep-drivers_scsi_qla2xxx_qla_init +1 -2
@@ -967,8 +967,7 @@ qla2x00_fw_ready(scsi_qla_host_t *ha)break ;/* Delay for a while */ -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /2 ); +msleep (500 );DEBUG3 (printk ("scsi(%ld): fw_state=%x curr time=%lx.\n" , ha->host_no, fw_state, jiffies));
_