Skip to content

bpf: Avoid RCU context warning when unpinning htab with internal structs

KaFai Wan bpf linux-kselftest lkml 3 versions – Applied

Status from this message: This series was applied to bpf/bpf.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied 2/2
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- fix nit (Yonghong Song)
- add Acked-by: Yonghong Song <[email protected]>

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Avoid RCU context warning when unpinning htab with internal structskernel/bpf/inode.c+2 -20 repliesApplied
2/2selftests/bpf: Add test for unpinning htab with internal timer structtools/testing/selftests/bpf/prog_tests/pinning_htab.c tools/testing/selftests/bpf/progs/test_pinning_htab.c+61 -02 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYonghong Song
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH bpf v3 0/2] bpf: Avoid RCU context warning when unpinning htab with internal structs

This small patchset is about avoid RCU context warning when unpinning htab with internal structs (timer, workqueue, or task_work).

v3:
- fix nit (Yonghong Song)
- add Acked-by: Yonghong Song <[email protected]>

v2:
- rename bpf_free_inode() to bpf_destroy_inode() (Andrii)
https://lore.kernel.org/all/[email protected]/

v1:
https://lore.kernel.org/all/[email protected]/

---
KaFai Wan (2):
bpf: Avoid RCU context warning when unpinning htab with internal
structs
selftests/bpf: Add test for unpinning htab with internal timer struct

 kernel/bpf/inode.c                            |  4 +--
 .../selftests/bpf/prog_tests/pinning_htab.c   | 36 +++++++++++++++++++
 .../selftests/bpf/progs/test_pinning_htab.c   | 25 +++++++++++++
 3 files changed, 63 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/pinning_htab.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_pinning_htab.c
Signature · 1 line
2.43.0