diff options
| author | Martin KaFai Lau <martin.lau@kernel.org> | 2022-10-25 21:45:21 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2022-10-26 09:11:46 +0300 |
| commit | fda64ae0bb3e37b5a4292625c6931cb156224d0f (patch) | |
| tree | 27fa66933685435b9a643e29b0fb0c9aa3b4c14a /include/linux/fpga/fpga-bridge.h | |
| parent | 4279adb094a17132423f1271c3d11b593fc2327e (diff) | |
| download | linux-fda64ae0bb3e37b5a4292625c6931cb156224d0f.tar.xz | |
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 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions
