]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Optimize schedule_dsq_reenq() with lockless fast path
authorTejun Heo <tj@kernel.org>
Sat, 7 Mar 2026 15:29:50 +0000 (05:29 -1000)
committerTejun Heo <tj@kernel.org>
Sat, 7 Mar 2026 15:29:50 +0000 (05:29 -1000)
commita90449b126824b796e9aeefc2b009e57f38af168
tree91423f5cbdc891c514d866df69102881d32b784c
parent84b1a0ea0b7c23dec240783a592e480780efe459
sched_ext: Optimize schedule_dsq_reenq() with lockless fast path

schedule_dsq_reenq() always acquires deferred_reenq_lock to queue a reenqueue
request. Add a lockless fast-path to skip lock acquisition when the request is
already pending with the required flags set.

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