lkml.org 
[lkml]   [1999]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: possible deadlock in smp_call_function()?

On Sat, 25 Sep 1999, Manfred Spraul wrote:

> if the smp_function area is busy, then smp_call_function() executes the
> following code:
>
> > if (retry) {
> > while (1) {
> > if (smp_call_function_data) {
> > schedule (); /* Give a mate a go */
> ^^^^^^^^^

yeah, i've been wondering about that one as well. Basically you have to be
careful to either call it without the retry option, or make sure to not
call it with spinlocks held. I'll fix this in my APIC patches to yield
instead of pure schedule().

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.826 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site