Re: Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3)

From: Gaurav Dhiman
Date: Wed Feb 08 2006 - 01:38:56 EST


On 2/8/06, anil dahiya <ak_ait@xxxxxxxxx> wrote:
> then which function i should use...beacause same
> problem is with interruptible_sleep_on

prefer to use wait_event_timeout() ; see its code in kernel.
Its written fro handling race conditions, which might occur in
interruptible_sleep_on() or other such functions.

-Gaurav

> thanks & Regards,
> anil
>
> --- David Woodhouse <dwmw2@xxxxxxxxxxxxx> wrote:
>
> > On Tue, 2006-02-07 at 12:00 -0800, anil dahiya
> > wrote:
> > > Badness in sleep_on_timeout at
> > kernel/sched.c:3022
> > > [<02302bc3>] sleep_on_timeout+0x5d/0x23a
> > > [<0211b919>] default_wake_function+0x0/0xc
> > >
> > > can any suggest how i can avoid this oops.
> >
> > Stop using sleep_on_timeout(). It's almost certainly
> > buggy.
> >
> > --
> > dwmw2
> >
> >
> > --
> > Kernelnewbies: Help each other learn about the Linux
> > kernel.
> > Archive:
> > http://mail.nl.linux.org/kernelnewbies/
> > FAQ: http://kernelnewbies.org/faq/
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/