sched_ext: Implement auto local dispatching of migration disabled tasks
authorTejun Heo <tj@kernel.org>
Fri, 7 Feb 2025 20:58:23 +0000 (10:58 -1000)
committerTejun Heo <tj@kernel.org>
Sun, 9 Feb 2025 06:32:54 +0000 (20:32 -1000)
commit2fa0fbeb69edd367b7c44f484e8dc5a5a1a311ef
tree5627ad235172c0ed449d20b700e6b21c9a54a474
parent029b6ce733712a41421955194b113f283dcb1026
sched_ext: Implement auto local dispatching of migration disabled tasks

Migration disabled tasks are special and pinned to their previous CPUs. They
tripped up some unsuspecting BPF schedulers as their ->nr_cpus_allowed may
not agree with the bits set in ->cpus_ptr. Make it easier for BPF schedulers
by automatically dispatching them to the pinned local DSQs by default. If a
BPF scheduler wants to handle migration disabled tasks explicitly, it can
set SCX_OPS_ENQ_MIGRATION_DISABLED.

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