cdrom/sonycd535: replace schedule_timeout() with
PATCH 1/1 cdrom/sonycd535: 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.
drivers/cdrom/sonycd535.c +1 -2
@@ -896,9 +896,8 @@ do_cdu535_request(request_queue_t * q) }if (readStatus ==BAD_STATUS ) {/* Sleep for a while, then retry */ -set_current_state (TASK_INTERRUPTIBLE );spin_unlock_irq (&sonycd535_lock); -schedule_timeout (RETRY_FOR_BAD_STATUS *HZ /10 ); +msleep_interruptible (RETRY_FOR_BAD_STATUS *100 );spin_lock_irq (&sonycd535_lock); }#if DEBUG >0
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
maximilian attems
AppliedQuoted 8 lines · Nishanth Aravamudan
Any comments would be, as always, appreciated.
-Nish
Description: Use
msleep_interruptible()instead ofschedule_timeout()to guarantee the task delays as expected.Signed-off-by Nishanth Aravamudan <[email protected]>
applied to kjt,
to get further testing and to be shure it gets upstream.
thanks
--
maks
kernel janitor http://janitor.kernelnewbies.org/
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors