Re: [PATCH 1/10] Add generic helpers for arch IPI function calls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Friday, May 2, 2008 - 5:29 am

On Fri, May 02, 2008 at 04:12:34AM +0200, Nick Piggin wrote:

OK -- for some reason, I was thinking that it was illegal to
invoke smp_call_function() with irqs disabled...

Ah, I see it -- smp_call_function_mask() says:

 * You must not call this function with disabled interrupts or from a
 * hardware interrupt handler or from a bottom half handler.

So we have no problem with smp_call_function, then.

OK, so smp_call_function() -can- be invoked with irqs disabled?
Hmmm...  I will give this some thought.


I don't believe that you can make the fallback non-deadlocky...  Perhaps
a failure of imagination on my part, of course, but I am beginning to
doubt that...


Well, given that you cannot call smp_call_function_mask() with irqs
disabled, my approach -does- work in that case, as an irq might come
in just after you called the function but before irqs were disabled.

So, how many places is smp_call_function() invoked with irqs disabled?

							Thanx, Paul

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/10] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Tue Apr 29, 1:35 pm)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Wed Apr 30, 7:51 am)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Wed Apr 30, 2:39 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function ..., Jeremy Fitzhardinge, (Wed Apr 30, 3:56 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function ..., Paul E. McKenney, (Fri May 2, 5:29 am)