lkml.org 
[lkml]   [2009]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Buggy IPI and MTRR code on low memory

On Wed, 28 Jan 2009, Andrew Morton wrote:

> On Wed, 28 Jan 2009 13:12:02 -0800
> Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > Thought: do we need to do the kmalloc at all? Perhaps we can instead
> > use a statically allocated per-cpu call_single_data local to
> > kernel/smp.c? It would need a spinlock or something to protect it...
>
> (not a spinlock - get_cpu_var/put_cpu_var will suffice)

Is that enough?

The calling IPIs may process the data after smp_call_function is made.
What happens if two smp_call_functions are executed one after the other?
The second one may corrupt the data if the IPI function has not executed
yet.

We may still need that "RELEASE" flag for that case.

-- Steve



\
 
 \ /
  Last update: 2009-01-28 22:27    [W:1.637 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site