* [kkeil@suse.de: Re: [patch 2/8] isdn/capi: replace interruptible_sleep_on() with wait_event_interruptible()]
@ 2005-03-07 10:15 Karsten Keil
0 siblings, 0 replies; only message in thread
From: Karsten Keil @ 2005-03-07 10:15 UTC (permalink / raw)
To: isdn4linux; +Cc: linux-kernel, nacc
On Mon, Mar 07, 2005 at 09:35:49AM +0100, Domen Puncer wrote:
> > > - for (;;) {
> > > - interruptible_sleep_on(&cdev->recvwait);
> > > - if ((skb = skb_dequeue(&cdev->recvqueue)) != 0)
> > > - break;
> > > - if (signal_pending(current))
> > > - break;
> > > - }
> > > + wait_event_interruptible(cdev->recvwait,
> > > + ((skb = skb_dequeue(&cdev->recvqueue)) == 0));
> > > if (skb == 0)
> > > return -ERESTARTNOHAND;
> > > }
> >
> > hmm, OK. Putting an expression with side-effect such as this into a macro
> > which evaluates the expression multiple times is a bit of a worry, but it
> > appears that everything will work OK.
> >
> > That being said, I'd prefer that this come in via the ISDN team, after
> > having been tested please.
>
> I believe last update from ISDN team was 13 months ago. :-(
You are wrong. Last update was few weeks ago (not on the core).
> And I concur, testing would be great.
Will do that next week.
--
Karsten Keil
SuSE Labs
ISDN development
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-07 10:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 10:15 [kkeil@suse.de: Re: [patch 2/8] isdn/capi: replace interruptible_sleep_on() with wait_event_interruptible()] Karsten Keil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®