[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c74b9751-7429-99ad-d46c-c004cb914cb7@efficios.com>
Date: Mon, 1 May 2023 09:04:58 -0400
From: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
To: Randy Dunlap <rdunlap@...radead.org>, linux-kernel@...r.kernel.org
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>
Subject: Re: [PATCH -next] sched: fix cid_lock kernel-doc warnings
On 2023-04-27 23:11, Randy Dunlap wrote:
> Fix kernel-doc warnings for cid_lock and use_cid_lock.
> These comments are not in kernel-doc format.
>
> kernel/sched/core.c:11496: warning: Cannot understand * @cid_lock: Guarantee forward-progress of cid allocation.
> on line 11496 - I thought it was a doc line
> kernel/sched/core.c:11505: warning: Cannot understand * @use_cid_lock: Select cid allocation behavior: lock-free vs spinlock.
> on line 11505 - I thought it was a doc line
>
Right. It made sense to have those as kernel-doc when those were
mm_struct fields in previous versions of the patch, but not anymore now
that those are stand-alone static variables.
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Thanks,
Mathieu
> Fixes: 223baf9d17f2 ("sched: Fix performance regression introduced by mm_cid")
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
> Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>
> Cc: Ingo Molnar <mingo@...hat.com>
> ---
> kernel/sched/core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff -- a/kernel/sched/core.c b/kernel/sched/core.c
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -11492,7 +11492,7 @@ void call_trace_sched_update_nr_running(
>
> #ifdef CONFIG_SCHED_MM_CID
>
> -/**
> +/*
> * @cid_lock: Guarantee forward-progress of cid allocation.
> *
> * Concurrency ID allocation within a bitmap is mostly lock-free. The cid_lock
> @@ -11501,7 +11501,7 @@ void call_trace_sched_update_nr_running(
> */
> DEFINE_RAW_SPINLOCK(cid_lock);
>
> -/**
> +/*
> * @use_cid_lock: Select cid allocation behavior: lock-free vs spinlock.
> *
> * When @use_cid_lock is 0, the cid allocation is lock-free. When contention is
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
Powered by blists - more mailing lists