sched: Clarify ordering between task_rq_lock() and move_queued_task()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 17 Feb 2015 12:07:38 +0000 (13:07 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Feb 2015 13:27:28 +0000 (14:27 +0100)
commit74b8a4cb6ce3685049ee124243a52238c5cabe55
tree72ea9b09e55fbe3a59e365e8e51a712057309347
parente07e0d4cb0c4bfe822ec8491cc06269096a38bea
sched: Clarify ordering between task_rq_lock() and move_queued_task()

There was a wee bit of confusion around the exact ordering here;
clarify things.

Reported-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20150217121258.GM5029@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c