Re: [PATCH bpf-next] bpf: increment and use correct thread iterator

2020-12-03 Thread Alexei Starovoitov
On Thu, Dec 03, 2020 at 01:59:07PM -0800, Jonathan Lemon wrote: > From: Jonathan Lemon > > If unable to obtain the file structure for the current task, > proceed to the next task number after the one returned from > task_seq_get_next(), instead of the next task number from the > original iterator

[PATCH bpf-next] bpf: increment and use correct thread iterator

2020-12-03 Thread Jonathan Lemon
From: Jonathan Lemon If unable to obtain the file structure for the current task, proceed to the next task number after the one returned from task_seq_get_next(), instead of the next task number from the original iterator. Use thread_group_leader() instead of comparing tgid vs pid, which might m