scsi/eata_pio: replace schedule_timeout()
Subsystems (2)
PATCH 1/1 scsi/eata_pio: replace schedule_timeout()
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/scsi/eata_pio.c +1 -2
@@ -508,8 +508,7 @@ static int eata_pio_host_reset(Scsi_CmndHD (cmd)->state =RESET ;spin_unlock_irq (host->host_lock); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (3 *HZ ); +msleep (3000 );spin_lock_irq (host->host_lock);DBG (DBG_ABNORM ,printk (KERN_WARNING "eata_pio_reset: interrupts disabled, " "loops %d.\n" , limit));
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors