Skip to contentSkip to conversation

block/cciss: use msleep() instead of

PATCH Applied Nishanth Aravamudan 1 participant 1 message Jul 9, 2005

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

PATCH 9/14 block/cciss: use msleep() instead of

From: Nishanth Aravamudan <[email protected]>

Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected. This change was ACK'ed before, but there were multiple versions floating around and this hunk got lost, it seems.

---

 cciss.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/block/cciss.c +1 -2
diff -urp 2.6.13-rc2-kj/drivers/block/cciss.c 2.6.13-rc2-kj-dev/drivers/block/cciss.c
@@ -2439,8 +2439,7 @@ static int cciss_pci_init(ctlr_info_t *c
 		scratchpad = readl(c->vaddr + SA5_SCRATCHPAD_OFFSET);
 		if (scratchpad == CCISS_FIRMWARE_READY)
 			break;
-		set_current_state(TASK_INTERRUPTIBLE);
-		schedule_timeout(HZ / 10); /* wait 100ms */
+		msleep(100);
 	}
 	if (scratchpad != CCISS_FIRMWARE_READY) {
 		printk(KERN_WARNING "cciss: Board not ready.  Timed out.\n");

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors