]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Don't free perf_mmap_data until work has been done
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 1 Dec 2009 20:05:01 +0000 (15:05 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 2 Dec 2009 08:30:18 +0000 (09:30 +0100)
commitec70ccd806111ba3caf596def91a8580138b12db
treee497d38d9f75a684475f32678efe8ffb22457c34
parentbdad0db7dbdb37d0bb3c7d0f65cd3ff599ea6ecb
perf: Don't free perf_mmap_data until work has been done

In the CONFIG_PERF_USE_VMALLOC case, perf_mmap_data_free() only
schedules the cleanup of the perf_mmap_data struct.  In that
case we have to wait until the work has been done before we free
data.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: <stable@kernel.org>
LKML-Reference: <1259697901-1747-1-git-send-email-krh@bitplanet.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c