diff options
| author | Budimir Markovic <[email protected]> | 2023-03-15 07:29:01 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2023-03-15 20:49:47 +0000 |
| commit | fd0815f632c24878e325821943edccc7fde947a2 (patch) | |
| tree | 9ed4e2f38abaa693526d389e017443117256a467 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | perf: fix perf_event_context->time (diff) | |
| download | kernel-fd0815f632c24878e325821943edccc7fde947a2.tar.gz kernel-fd0815f632c24878e325821943edccc7fde947a2.zip | |
perf: Fix check before add_event_to_groups() in perf_group_detach()
Events should only be added to a groups rb tree if they have not been
removed from their context by list_del_event(). Since remove_on_exec
made it possible to call list_del_event() on individual events before
they are detached from their group, perf_group_detach() should check each
sibling's attach_state before calling add_event_to_groups() on it.
Fixes: 2e498d0a74e5 ("perf: Add support for event removal on exec")
Signed-off-by: Budimir Markovic <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/ZBFzvQV9tEqoHEtH@gentoo
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions
