BUG: Sleeping function called from invalid context...

2008-08-20 Thread Ananth N Mavinakayanahalli
Roland, Occasionally, I see: attached to 1717 = 0xde089000 utrace_control: -EINPROGRESS pid 1717 reports quiesced to 0xde089000 BUG: sleeping function called from invalid context at kernel/sched.c:5428 in_atomic():0, irqs_disabled():1 no locks held by uttest/1717. irq event stamp: 1396 hardirqs

Re: BUG: Sleeping function called from invalid context...

2008-08-20 Thread Roland McGrath
Thanks for the report, Ananth. Ah! The i386 will enter do_notify_resume() with interrupts disabled. Other machines don't do this (x86-64 and powerpc64, anyway). It is often harmless, because if TIF_SIGPENDING is set, we'll first enter get_signal_to_deliver() and implicitly reenable interrupts

Re: BUG: Sleeping function called from invalid context...

2008-08-20 Thread Ananth N Mavinakayanahalli
On Wed, Aug 20, 2008 at 11:48:00AM -0700, Roland McGrath wrote: Thanks for the report, Ananth. Ah! The i386 will enter do_notify_resume() with interrupts disabled. Other machines don't do this (x86-64 and powerpc64, anyway). It is often harmless, because if TIF_SIGPENDING is set, we'll