public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf v3 0/2] bpf: Avoid RCU context warning when unpinning htab with internal structs
@ 2025-10-08 10:26 KaFai Wan
  2025-10-08 10:26 ` [PATCH bpf v3 1/2] " KaFai Wan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: KaFai Wan @ 2025-10-08 10:26 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, shuah, kafai.wan,
	toke, linux-kernel, bpf, linux-kselftest

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 <yonghong.song@linux.dev>

v2:
  - rename bpf_free_inode() to bpf_destroy_inode() (Andrii)
 https://lore.kernel.org/all/20251007012235.755853-1-kafai.wan@linux.dev/

v1:
 https://lore.kernel.org/all/20251003084528.502518-1-kafai.wan@linux.dev/

---
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

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-11 15:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-08 10:26 [PATCH bpf v3 0/2] bpf: Avoid RCU context warning when unpinning htab with internal structs KaFai Wan
2025-10-08 10:26 ` [PATCH bpf v3 1/2] " KaFai Wan
2025-10-08 10:26 ` [PATCH bpf v3 2/2] selftests/bpf: Add test for unpinning htab with internal timer struct KaFai Wan
2025-10-10 17:28   ` Alexei Starovoitov
2025-10-11 15:09     ` KaFai Wan
2025-10-10 17:30 ` [PATCH bpf v3 0/2] bpf: Avoid RCU context warning when unpinning htab with internal structs patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox