[lkml]   [2009]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 3/3 -mm] generic-ipi: fix the race between generic_smp_call_function_*() and hotplug_cfd()

Peter Zijlstra wrote:

> It introduces this run_callbacks thing to two functions, but nothing
> actually uses that... makes me suspicious there's something missing.

Hi Peter,

Thanks for your point out.
I'm sorry for making a mistake when I make this patch, I'll send the new
patch soon

Hi Andrew,

I can't apply "kernel/smp.c: relocate some code" because this patch are
base on my other patch: "generic-ipi: make struct call_function_data lockless",
which can be found at:

I'll rewrite your patch base on it


>> + local_irq_save(flags);
>> + __generic_smp_call_function_interrupt(cpu, 0);
>> + __generic_smp_call_function_single_interrupt(cpu, 0);
>> + local_irq_restore(flags);
> Doing the callbacks from a different cpu than they were queued on seems
> like a fine way to mess things up.

 \ /
  Last update: 2009-07-30 10:15    [W:0.099 / U:8.944 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site