preempt_disable query

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 [at] 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
Rick Brown [ Mi, 11 August 2010 19:33 ] [ ID #2045848 ]

Re: preempt_disable query

On Wed, Aug 11, 2010 at 11:03 PM, Rick Brown <rick.brown.3 [at] gmail.com> 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 [at] 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
ratheesh k [ Do, 12 August 2010 07:32 ] [ ID #2045931 ]
Linux » gmane.linux.newbie » preempt_disable query

Vorheriges Thema: Understanding the need for high memory
Nächstes Thema: custom ram fs page cache issue