[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interruptible_sleep_on() vs wait_event_interruptible()



> and the race can happen between the test if the process should sleep and 
> actually going to sleep?

yup

and the api is fundamentally broken because you can't do proper locking
for this (other than BKL-with-irqs-off, which isn't allowed in 2.6).



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/