]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Convert scx_dump_state() spinlock to raw spinlock
authorTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:04 +0000 (07:58 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:04 +0000 (07:58 -1000)
commiteff782fddb5cb03c247fdb68b148abfd30cda1fe
treeeb495957680a2a908fa0c41fa1591c55f626fab9
parentcde94c032b32be773ef05db9847be6f02fb123f0
sched_ext: Convert scx_dump_state() spinlock to raw spinlock

The scx_dump_state() function uses a regular spinlock to serialize
access. In a subsequent patch, this function will be called while
holding scx_sched_lock, which is a raw spinlock, creating a lock
nesting violation.

Convert the dump_lock to a raw spinlock and use the guard macro for
cleaner lock management.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext.c