]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Move mmdrop to RCU on RT
authorThomas Gleixner <tglx@linutronix.de>
Tue, 28 Sep 2021 12:24:32 +0000 (14:24 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Oct 2021 13:52:09 +0000 (15:52 +0200)
commitde9e5edf8f5013724a646d9989f51f95161f8f2c
tree63a9b2be7c7f2baacc8dfd695088634fd1c8d079
parentdc551787c31d5e6b3a03c1a2a82159f16383113d
sched: Move mmdrop to RCU on RT

mmdrop() is invoked from finish_task_switch() by the incoming task to drop
the mm which was handed over by the previous task. mmdrop() can be quite
expensive which prevents an incoming real-time task from getting useful
work done.

Provide mmdrop_sched() which maps to mmdrop() on !RT kernels. On RT kernels
it delagates the eventually required invocation of __mmdrop() to RCU.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210928122411.648582026@linutronix.de
include/linux/mm_types.h
include/linux/sched/mm.h
kernel/sched/core.c