preempt_disable query

preempt_disable query

am 11.08.2010 19:33:45 von Rick Brown

Hi,

1) Is it allowable to sleep (while in process context) after a call to
preempt_disable()?

2) Would a call to preempt_disable() disable preemption only on the
local processor or on all the processors?

TIA,

Rick
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

Re: preempt_disable query

am 12.08.2010 07:32:53 von ratheesh k

On Wed, Aug 11, 2010 at 11:03 PM, Rick Brown wrote:

> 1) Is it allowable to sleep (while in process context) after a call to
> preempt_disable()?
Sleeping in the kernel with preemption disabled is considered to be a
bug. So the scheduler will print an error and a stack dump when this
happens.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs