summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-09-10 09:46:44 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-10-16 11:13:52 +0200
commit942b8db965006cf655d356162f7091a9238da94e (patch)
treec4607a7f83281f7b53e5d3b9ccbdf99eae76e903 /kernel/sched/sched.h
parent6455ad5346c9cf755fa9dda6e326c4028fb3c853 (diff)
sched: Fix migrate_disable_switch() locking
For some reason migrate_disable_switch() was more complicated than it needs to be, resulting in mind bending locking of dubious quality. Recognise that migrate_disable_switch() must be called before a context switch, but any place before that switch is equally good. Since the current place results in troubled locking, simply move the thing before taking rq->lock. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Juri Lelli <juri.lelli@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'kernel/sched/sched.h')
0 files changed, 0 insertions, 0 deletions