]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Properly mark SCX-internal migrations via sticky_cpu
authorAndrea Righi <arighi@nvidia.com>
Wed, 18 Feb 2026 08:32:15 +0000 (09:32 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 23 Feb 2026 20:00:53 +0000 (10:00 -1000)
commitb75aaea24c9fc776e5bd14df38147270a3c00450
tree6330d3c839a5229bd7defabe1af1d46787ec8980
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
sched_ext: Properly mark SCX-internal migrations via sticky_cpu

Reposition the setting and clearing of sticky_cpu to better define the
scope of SCX-internal migrations.

This ensures @sticky_cpu is set for the entire duration of an internal
migration (from dequeue through enqueue), making it a reliable indicator
that an SCX-internal migration is in progress. The dequeue and enqueue
paths can then use @sticky_cpu to identify internal migrations and skip
BPF scheduler notifications accordingly.

This prepares for a later commit fixing the ops.dequeue() semantics.
No functional change intended.

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