]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix task refcount bugs
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 14 Oct 2010 14:54:51 +0000 (16:54 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Oct 2010 17:58:52 +0000 (19:58 +0200)
commit63db0321d8ada3404db3e5df464222c553d59806
treebe1cd1fc48f6458a2efa4d0bfac53808938208dc
parente1899d197a7653e3028171fb479c8eca1ac2c99f
perf: Fix task refcount bugs

Currently it looks like find_lively_task_by_vpid() takes a task ref
and relies on find_get_context() to drop it.

The problem is that perf_event_create_kernel_counter() shouldn't be
dropping task refs.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Matt Helsley <matthltc@us.ibm.com>
LKML-Reference: <20101014203625.278436085@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c