Commit 6831224a authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Christoph Hellwig

[PATCH] scsi/eata_pio: replace schedule_timeout() with msleep()

Use msleep() instead of schedule_timeout() to
guarantee the task delays for the desired time.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent c41e0daa
...@@ -511,8 +511,7 @@ static int eata_pio_host_reset(struct scsi_cmnd *cmd) ...@@ -511,8 +511,7 @@ static int eata_pio_host_reset(struct scsi_cmnd *cmd)
HD(cmd)->state = RESET; HD(cmd)->state = RESET;
spin_unlock_irq(host->host_lock); spin_unlock_irq(host->host_lock);
set_current_state(TASK_UNINTERRUPTIBLE); msleep(3000);
schedule_timeout(3 * HZ);
spin_lock_irq(host->host_lock); spin_lock_irq(host->host_lock);
DBG(DBG_ABNORM, printk(KERN_WARNING "eata_pio_reset: interrupts disabled, " "loops %d.\n", limit)); DBG(DBG_ABNORM, printk(KERN_WARNING "eata_pio_reset: interrupts disabled, " "loops %d.\n", limit));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment