summaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2021-08-26 16:37:38 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-08-26 20:02:00 +0300
commite681dcbaa4b284454fecd09617f8b24231448446 (patch)
tree9274cf04df39c1ef533537a713df7f57c92fef2f /mm/shmem.c
parent3c474b3239f12fe0b00d7e82481f36a1f31e79ab (diff)
downloadlinux-e681dcbaa4b284454fecd09617f8b24231448446.tar.xz
sched: Fix get_push_task() vs migrate_disable()
push_rt_task() attempts to move the currently running task away if the next runnable task has migration disabled and therefore is pinned on the current CPU. The current task is retrieved via get_push_task() which only checks for nr_cpus_allowed == 1, but does not check whether the task has migration disabled and therefore cannot be moved either. The consequence is a pointless invocation of the migration thread which correctly observes that the task cannot be moved. Return NULL if the task has migration disabled and cannot be moved to another CPU. Fixes: a7c81556ec4d3 ("sched: Fix migrate_disable() vs rt/dl balancing") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20210826133738.yiotqbtdaxzjsnfj@linutronix.de
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions