Re: [PATCH 2/3 v4 bpf-next] bpf: Use thread_group_leader()

2020-12-18 Thread Andrii Nakryiko
On Fri, Dec 18, 2020 at 12:47 PM Jonathan Lemon wrote: > > From: Jonathan Lemon > > Instead of directly comparing task->tgid and task->pid, use the > thread_group_leader() helper. This helps with readability, and > there should be no functional change. > > Signed-off-by: Jonathan Lemon > --- A

[PATCH 2/3 v4 bpf-next] bpf: Use thread_group_leader()

2020-12-18 Thread Jonathan Lemon
From: Jonathan Lemon Instead of directly comparing task->tgid and task->pid, use the thread_group_leader() helper. This helps with readability, and there should be no functional change. Signed-off-by: Jonathan Lemon --- kernel/bpf/task_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion