diff options
author | Martin KaFai Lau <martin.lau@kernel.org> | 2022-10-25 11:45:21 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-10-25 23:11:46 -0700 |
commit | fda64ae0bb3e37b5a4292625c6931cb156224d0f (patch) | |
tree | 27fa66933685435b9a643e29b0fb0c9aa3b4c14a /tools/testing/selftests/bpf/progs/task_ls_recursion.c | |
parent | 4279adb094a17132423f1271c3d11b593fc2327e (diff) |
bpf: bpf_task_storage_delete_recur does lookup first before the deadlock check
Similar to the earlier change in bpf_task_storage_get_recur.
This patch changes bpf_task_storage_delete_recur such that it
does the lookup first. It only returns -EBUSY if it needs to
take the spinlock to do the deletion when potential deadlock
is detected.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20221025184524.3526117-7-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/task_ls_recursion.c')
0 files changed, 0 insertions, 0 deletions