]> git.karo-electronics.de Git - linux-beck.git/commit
perf: Fix AUX buffer refcounting
authorPeter Zijlstra <peterz@infradead.org>
Thu, 18 Jun 2015 10:32:49 +0000 (12:32 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 6 Jul 2015 12:08:30 +0000 (14:08 +0200)
commit57ffc5ca679f499f4704fd9b6a372916f59930ee
treed0cd5624c19e90d3bbbc9462b5ae6bbb1e6a9c81
parentd2d61ed55f8375a10ff606e83e2196880a775fb4
perf: Fix AUX buffer refcounting

Its currently possible to drop the last refcount to the aux buffer
from NMI context, which results in the expected fireworks.

The refcounting needs a bigger overhaul, but to cure the immediate
problem, delay the freeing by using an irq_work.

Reviewed-and-tested-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150618103249.GK19282@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c
kernel/events/internal.h
kernel/events/ring_buffer.c