Re: [PATCH sched_ext/for-6.19] sched_ext: Pass locked CPU parameter to scx_hardlockup() and add docs

From: Doug Anderson

Date: Fri Nov 14 2025 - 14:24:17 EST


Hi,

On Thu, Nov 13, 2025 at 5:33 PM Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> With the buddy lockup detector, smp_processor_id() returns the detecting CPU,
> not the locked CPU, making scx_hardlockup()'s printouts confusing. Pass the
> locked CPU number from watchdog_hardlockup_check() as a parameter instead.
>
> Also add kerneldoc comments to handle_lockup(), scx_hardlockup(), and
> scx_rcu_cpu_stall() documenting their return value semantics.
>
> Suggested-by: Doug Anderson <dianders@xxxxxxxxxxxx>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> ---
> include/linux/sched/ext.h | 4 ++--
> kernel/sched/ext.c | 25 ++++++++++++++++++++++---
> kernel/watchdog.c | 2 +-
> 3 files changed, 25 insertions(+), 6 deletions(-)

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>