Re: [PATCH 5/6] bpf: task_group_seq_get_next: simplify the "next tid" logic

From: Yonghong Song
Date: Fri Aug 25 2023 - 18:58:20 EST




On 8/25/23 9:19 AM, Oleg Nesterov wrote:
Kill saved_tid. It looks ugly to update *tid and then restore the
previous value if __task_pid_nr_ns() returns 0. Change this code
to update *tid and common->pid_visiting once before return.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Acked-by: Yonghong Song <yonghong.song@xxxxxxxxx>