Skip to content

bpf: kernel/bpf/task_iter.c: don't abuse next_thread()

Oleg Nesterov bpf lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: task_group_seq_get_next: use __next_thread() rather than next_thread()kernel/bpf/task_iter.c+5 -73 repliesApplied
2/3bpf: bpf_iter_task_next: use __next_thread() rather than next_thread()kernel/bpf/task_iter.c+4 -51 replyApplied
3/3bpf: bpf_iter_task_next: use next_task(kit->task) rather than next_task(kit->pos)kernel/bpf/task_iter.c+5 -92 repliesApplied

Reviews trailers per patch

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

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

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

Read the v1 thread

Cover letter [PATCH 0/3] bpf: kernel/bpf/task_iter.c: don't abuse next_thread()

Compile tested.

Every lockless usage of next_thread() was wrong, bpf/task_iter.c is the last user and is no exception.

Oleg.
---

 kernel/bpf/task_iter.c | 29 +++++++++++------------------
 1 file changed, 11 insertions(+), 18 deletions(-)