Re: Question about interrupt enabling/disabling in kernel exit path

From: David Mosberger-Tang <>
Date: 2005-11-15 08:52:56
> Then I notice that after we return from do_notify_resume_user() we don't
> recheck TIF_NEED_RESCHED, etc. in the thread_info flags.

Why do you say this?  It's not true.  After processing pending work,
we go back to .work_processed_{syscall,kernel), which will again
invoke .work_pending, if necessary.

AFAIR, it's OK to reenable interrupts in notify_resume_user() because
we know we're at the top of the kernel stack (i.e., there is no risk
of nesting the kernel stack too deeply due to pending interrupts),
provided the interrupts are off again when resuming execution at

Mosberger Consulting LLC, voice/fax: 510-744-9372,
35706 Runckel Lane, Fremont, CA 94536
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Nov 15 08:53:53 2005

This archive was generated by hypermail 2.1.8 : 2005-11-15 08:54:02 EST