]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched: Streamline the task migration locking a little
authorPeter Zijlstra <peterz@infradead.org>
Thu, 11 Jun 2015 12:46:51 +0000 (14:46 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jun 2015 22:25:27 +0000 (00:25 +0200)
commit5e16bbc2fb4053755705da5dd3557bbc0e5ccef6
tree7abb74300fd8881c8a0f7f20d0fa13353e5a1956
parent5cc389bcee088b72c8c34a01d596412cab4f3f78
sched: Streamline the task migration locking a little

The whole migrate_task{,s}() locking seems a little shaky, there's a
lot of dropping an require happening. Pull the locking up into the
callers as far as possible to streamline the lot.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: ktkhai@parallels.com
Cc: rostedt@goodmis.org
Cc: juri.lelli@gmail.com
Cc: pang.xunlei@linaro.org
Cc: oleg@redhat.com
Cc: wanpeng.li@linux.intel.com
Cc: umgwanakikbuti@gmail.com
Link: http://lkml.kernel.org/r/20150611124743.755256708@infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/sched/core.c