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

Re: Sleeping after preempt_disable() possible?




> Can I sleep after a call to preempt_disable() ?


What are you trying to do? You can sleep from process context. If two
different process context can access to shared data, you can use semaphore...


I was curious that after a call to preempt_disable(), can I call a function that MAY sleep?

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