]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
sched/fair: Only set slice protection at pick time
authorPeter Zijlstra <peterz@infradead.org>
Fri, 23 Jan 2026 15:49:09 +0000 (16:49 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 23 Feb 2026 10:19:18 +0000 (11:19 +0100)
commitbcd74b2ffdd0a2233adbf26b65c62fc69a809c8e
treef57ae03099055b5afd9f513e83beb770eb890d40
parentb3d99f43c72b56cf7a104a364e7fb34b0702828b
sched/fair: Only set slice protection at pick time

We should not (re)set slice protection in the sched_change pattern
which calls put_prev_task() / set_next_task().

Fixes: 63304558ba5d ("sched/eevdf: Curb wakeup-preemption")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: Shubhang Kaushik <shubhang@os.amperecomputing.com>
Link: https://patch.msgid.link/20260219080624.561421378%40infradead.org
kernel/sched/fair.c