mbox series

[bpf,0/2] bpf: two fixes for bpf task/task_file iterators

Message ID 20200818162408.836759-1-yhs@fb.com
Headers show
Series bpf: two fixes for bpf task/task_file iterators | expand

Message

Yonghong Song Aug. 18, 2020, 4:24 p.m. UTC
Patch #1 fixed a rcu stall warning by adding proper cond_resched()
when traversing tasks or files.
Patch #2 calculated tid properly in a namespace in order to avoid
visiting the name task multiple times.

Yonghong Song (2):
  bpf: fix a rcu_sched stall issue with bpf task/task_file iterator
  bpf: avoid visit same object multiple times

 kernel/bpf/task_iter.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)