Skip to contentSkip to conversation

scsi/qla_init: replace schedule_timeout() with msleep()

PATCH New [email protected] 1 participant 1 message Sep 1, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 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
diff -puN drivers/scsi/qla2xxx/qla_init.c~msleep-drivers_scsi_qla2xxx_qla_init drivers/scsi/qla2xxx/qla_init.c
@@ -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));

_