Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf: two fixes for bpf task/task_file iterators
@ 2020-08-18 16:24 Yonghong Song
  2020-08-18 16:24 ` [PATCH bpf 1/2] bpf: fix a rcu_sched stall issue with bpf task/task_file iterator Yonghong Song
  2020-08-18 16:24 ` [PATCH bpf 2/2] bpf: avoid visit same object multiple times Yonghong Song
  0 siblings, 2 replies; 7+ messages in thread
From: Yonghong Song @ 2020-08-18 16:24 UTC (permalink / raw)
  To: bpf, netdev; +Cc: Alexei Starovoitov, Daniel Borkmann, kernel-team

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

-- 
2.24.1


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

end of thread, other threads:[~2020-08-18 17:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 16:24 [PATCH bpf 0/2] bpf: two fixes for bpf task/task_file iterators Yonghong Song
2020-08-18 16:24 ` [PATCH bpf 1/2] bpf: fix a rcu_sched stall issue with bpf task/task_file iterator Yonghong Song
2020-08-18 16:48   ` Andrii Nakryiko
2020-08-18 17:07     ` Yonghong Song
2020-08-18 17:06   ` Alexei Starovoitov
2020-08-18 17:13     ` Yonghong Song
2020-08-18 16:24 ` [PATCH bpf 2/2] bpf: avoid visit same object multiple times Yonghong Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).