From: Nishanth Aravamudan Subject: [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] parport/parport_pc: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer --- parport_pc.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: quilt/drivers/parport/parport_pc.c =================================================================== --- quilt.orig/drivers/parport/parport_pc.c +++ quilt/drivers/parport/parport_pc.c @@ -173,8 +173,7 @@ static int change_mode(struct parport *p if (time_after_eq (jiffies, expire)) /* The FIFO is stuck. */ return -EBUSY; - __set_current_state (TASK_INTERRUPTIBLE); - schedule_timeout ((HZ + 99) / 100); + msleep_interruptible(10); if (signal_pending (current)) break; }