* [KJ] [PATCH] cdrom/sonycd535: replace schedule_timeout() with
@ 2004-10-22 23:59 Nishanth Aravamudan
2004-10-24 14:11 ` maximilian attems
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-10-22 23:59 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
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 <nacc@us.ibm.com>
--- 2.6.9-bk7-vanilla/drivers/cdrom/sonycd535.c 2004-10-22 10:41:41.000000000 -0700
+++ 2.6.9-bk7/drivers/cdrom/sonycd535.c 2004-10-22 12:02:21.000000000 -0700
@@ -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
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ] [PATCH] cdrom/sonycd535: replace schedule_timeout() with
2004-10-22 23:59 [KJ] [PATCH] cdrom/sonycd535: replace schedule_timeout() with Nishanth Aravamudan
@ 2004-10-24 14:11 ` maximilian attems
0 siblings, 0 replies; 2+ messages in thread
From: maximilian attems @ 2004-10-24 14:11 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
On Fri, 22 Oct 2004, Nishanth Aravamudan wrote:
> 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 <nacc@us.ibm.com>
applied to kjt,
to get further testing and to be shure it gets upstream.
thanks
--
maks
kernel janitor http://janitor.kernelnewbies.org/
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-24 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-22 23:59 [KJ] [PATCH] cdrom/sonycd535: replace schedule_timeout() with Nishanth Aravamudan
2004-10-24 14:11 ` maximilian attems
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.