perf_events: Fix __perf_event_exit_task() vs. update_event_times() locking
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 23 Nov 2009 10:37:27 +0000 (11:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 10:49:57 +0000 (11:49 +0100)
commitf67218c3e93abaf0f480bb94b53d234853ffe4de
tree8b82587c79c53376b9295e543932d746fd725260
parent5e942bb33371254a474653123cd9e13a4c89ee44
perf_events: Fix __perf_event_exit_task() vs. update_event_times() locking

Move the update_event_times() call in __perf_event_exit_task()
into list_del_event() because that holds the proper lock
(ctx->lock) and seems a more natural place to do the last time
update.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20091123103819.842455480@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c