Re: [RFC PATCH] introduce sys_membarrier(): process-wide memory barrier

Steven Rostedt
2010-01-07T13:15:36Z

On Thu, 2010-01-07 at 09:44 +0100, Peter Zijlstra wrote:

> A simple:
>
> for_each_cpu(cpu, current->mm->cpu_vm_mask) {
> if (cpu_curr(cpu)->mm == current->mm)
> smp_call_function_single(cpu, func, NULL, 1);
> }

I like this algorithm the best ;-)

-- Steve