Re: [PATCH 5/8] kernel: convert process/thread iterators to for_each_*_rcu

From: Günther Noack

Date: Fri Sep 04 2026 - 11:05:37 EST


On Fri, Sep 04, 2026 at 04:29:57PM +0800, Ye Liu wrote:
> diff --git a/kernel/hung_task.c b/kernel/hung_task.c
> index 6fcc94ce4ca9..76871f78497f 100644
> --- a/kernel/hung_task.c
> +++ b/kernel/hung_task.c
> @@ -337,9 +336,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout)
> hung_task_info(t, timeout, this_round_count);
> }
> }
> - unlock:
> - rcu_read_unlock();
> -
> +unlock:
> if (!this_round_count)
> return;

The label name "unlock" is misleading now. There is no further unlock
happening after it any more.

–Günther