* [KJ] Re: 12/34: cdrom/cdu31a: replace interruptible_sleep_on() with
@ 2005-01-30 12:10 Domen Puncer
2005-01-30 19:02 ` [KJ] Re: 12/34: cdrom/cdu31a: replace interruptible_sleep_on() Nish Aravamudan
0 siblings, 1 reply; 2+ messages in thread
From: Domen Puncer @ 2005-01-30 12:10 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 769 bytes --]
On 25/01/05 15:14 -0800, Nishanth Aravamudan wrote:
> Hi,
>
> Please consider applying.
>
> Description: Use wait_event_interruptible() instead of the deprecated
> interruptible_sleep_on(). The patch is straight-forward as the macros should
> result in the same execution. Patch is compile-tested (still throws out warnings
> regarding {save,restore}_flags()).
It also indirectly calls schedule() with interrupts disabled... this
can't be right?
Domen
>
> cli();
> - while (sony_inuse) {
> - interruptible_sleep_on(&sony_wait);
> - if (signal_pending(current)) {
> - restore_flags(flags);
> - return -EAGAIN;
> - }
> + wait_event_interruptible(sony_wait, sony_inuse);
> + if (signal_pending(current)) {
> + restore_flags(flags);
> + return -EAGAIN;
[-- 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] Re: 12/34: cdrom/cdu31a: replace interruptible_sleep_on()
2005-01-30 12:10 [KJ] Re: 12/34: cdrom/cdu31a: replace interruptible_sleep_on() with Domen Puncer
@ 2005-01-30 19:02 ` Nish Aravamudan
0 siblings, 0 replies; 2+ messages in thread
From: Nish Aravamudan @ 2005-01-30 19:02 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]
On Sun, 30 Jan 2005 13:10:27 +0100, Domen Puncer <domen@coderock.org> wrote:
> On 25/01/05 15:14 -0800, Nishanth Aravamudan wrote:
> > Hi,
> >
> > Please consider applying.
> >
> > Description: Use wait_event_interruptible() instead of the deprecated
> > interruptible_sleep_on(). The patch is straight-forward as the macros should
> > result in the same execution. Patch is compile-tested (still throws out warnings
> > regarding {save,restore}_flags()).
>
> It also indirectly calls schedule() with interrupts disabled... this
> can't be right?
>
> > cli();
> > - while (sony_inuse) {
> > - interruptible_sleep_on(&sony_wait);
> > - if (signal_pending(current)) {
> > - restore_flags(flags);
> > - return -EAGAIN;
> > - }
> > + wait_event_interruptible(sony_wait, sony_inuse);
> > + if (signal_pending(current)) {
> > + restore_flags(flags);
> > + return -EAGAIN;
Yes, pretty much any driver that still calls cli()/sti() is broken in
one way or another. I think you are right, though, that the schedule()
with interrupts cleared makes little sense. I'm not sure how to fix it
though.
-Nish
[-- 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:[~2005-01-30 19:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-30 12:10 [KJ] Re: 12/34: cdrom/cdu31a: replace interruptible_sleep_on() with Domen Puncer
2005-01-30 19:02 ` [KJ] Re: 12/34: cdrom/cdu31a: replace interruptible_sleep_on() Nish Aravamudan
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.