Re: [patch] Fix suspend of the kseriod thread

Vojtech Pavlik (vojtech@suse.cz)
Wed, 31 Jul 2002 00:00:42 +0200


On Tue, Jul 30, 2002 at 10:57:36PM +0100, Russell King wrote:
> On Tue, Jul 30, 2002 at 10:17:22PM +0200, Vojtech Pavlik wrote:
> > do {
> > serio_handle_events();
> > + interruptible_sleep_on(&serio_wait);
> > if (current->flags & PF_FREEZE)
> > refrigerator(PF_IOTHREAD);
> > - interruptible_sleep_on(&serio_wait);
> > } while (!signal_pending(current));
>
> Isn't interruptible_sleep_on() taboo?

As far as I know it only implies a bug when used with some condition,
like "buffer non-empty" etc. As always, I may be wrong, of course.

-- 
Vojtech Pavlik
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/