[PATCH] cciss: use msleep() instead of schedule_timeout() From: Nishanth Aravamudan 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. Signed-off-by: Nishanth Aravamudan Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/block/cciss.c =================================================================== --- linux-kj.orig/drivers/block/cciss.c +++ linux-kj/drivers/block/cciss.c @@ -2445,8 +2445,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");