From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Kenneth W" Date: Tue, 15 Nov 2005 21:04:07 +0000 Subject: RE: Question about interrupt enabling/disabling in kernel exit path Message-Id: <200511152104.jAFL47g10462@unix-os.sc.intel.com> List-Id: References: <1131559925.5214.100.camel@localhost.localdomain> In-Reply-To: <1131559925.5214.100.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Lee Schermerhorn wrote on Tuesday, November 15, 2005 12:21 PM > On Mon, 2005-11-14 at 13:52 -0800, David Mosberger-Tang wrote: > > > 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. > > OK. I guess I'm misinterpreting the comments on the line labeled > '.ret10:'. > Say's it's setting p6 to zero, so no recheck. I'm not fluent [writing > nor reading] ia64 assembler, but it appeared to me that with p6 set to > zero on return from notify_resume(), the checks for more work back > at .work_processed_* would be disabled. > Looking at the code, I think Lee is correct that upon returning from notify_resume_user, p6 is turned off and subsequently turns off all the check in work_pending. - Ken