scsi/imm: replace schedule_timeout() with msleep()
PATCH 3/10 scsi/imm: replace schedule_timeout() with msleep()
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-max/drivers/scsi/imm.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/imm.c renamed from drivers/scsi/imm.c~msleep-drivers_scsi_imm +1 -1
@@ -1184,7 +1184,7 @@ static int __imm_attach(struct parport * dev->waiting = &waiting;prepare_to_wait (&waiting, &wait,TASK_UNINTERRUPTIBLE );if (imm_pb_claim (dev)) -schedule_timeout (3 *HZ ); +msleep (3000 );if (dev->wanted) {printk (KERN_ERR "imm%d: failed to claim parport because " "a pardevice is owning the port for too long "
_