[Devel] [PATCH hci-8.1 v2 3/3] sched: drop task_lock from sched_show_task()
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Mon Nov 16 16:52:59 MSK 2026
> From: Denis V. Lunev <den at openvz.org>
>
> Commit 35518dbbfd76 ("ve: Switch from task_ve_name() to ve_name()")
> made sched_show_task() look the ve up with get_task_ve(), which takes
> task_lock of the task being shown. sched_show_task() is a diagnostic
> called with interrupts off under raw locks or from an interrupt, while
> task_lock is taken with interrupts on, by a /proc/PID/fd read for one:
>
> - the RCU stall reports show the tasks blocking the grace period
> under rnp->lock, from the scheduler tick;
> - dump_cpu_task() shows the current task of a stuck CPU from the
> RCU stall and CSD lock reports; when that task is stuck holding
> its own task_lock, the report spins forever instead of printing;
> - the workqueue watchdog shows a hogging worker under pool->lock;
> - sysrq-t runs show_state() from the keyboard or serial interrupt.
> [ ... ]
> https://virtuozzo.atlassian.net/browse/VSTOR-155341
>
> Feature: ve: ve generic structures
> Suggested-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
> Signed-off-by: Denis V. Lunev <den at openvz.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261116134445.438480-1-den@openvz.org?part=3
More information about the Devel
mailing list