w1/w1: replace schedule_timeout() with
Subsystems (2)
PATCH 1/1 w1/w1: replace schedule_timeout() with
Any comments would be, as always, appreciated.
-Nish
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/w1/w1.c +1 -3
@@ -452,10 +452,8 @@ static void w1_slave_detach(struct w1_slwhile (atomic_read (&sl->refcnt)) {printk (KERN_INFO "Waiting for %s to become free: refcnt=%d.\n" , sl->name,atomic_read (&sl->refcnt)); -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (HZ ); -if (signal_pending (current)) +if (msleep_interruptible (1000 ))flush_signals (current); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors