lkml.org 
[lkml]   [2010]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/3] perf_event: fix race in perf_swevent_get_recursion_context()
FromPeter Zijlstra <>
DateMon, 18 Jan 2010 14:55:58 +0100
On Mon, 2010-01-18 at 21:42 +0800, Xiao Guangrong wrote:
> It only disable preemption in perf_swevent_get_recursion_context()
> it can't avoid race of hard-irq and NMI
>
> In this patch, we use atomic operation to avoid it and reduce
> cpu_ctx->recursion size, it also make this patch no need diable
> preemption

Uhm why?

This patch looks terminally broken



\
 
 \ /
  Last update: 2010-01-18 14:59    [from the cache]
©2003-2010