]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/sched.c
sched: Also serialize ttwu_local() with p->pi_lock
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 5 Apr 2011 15:23:50 +0000 (17:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 14 Apr 2011 06:52:37 +0000 (08:52 +0200)
commit2acca55ed98ad9b9aa25e7e587ebe306c0313dc7
treeb06fcc57dc284ccf8dcbda90370fd08250887421
parenta8e4f2eaecc9bfa4954adf79a04f4f22fddd829c
sched: Also serialize ttwu_local() with p->pi_lock

Since we now serialize ttwu() using p->pi_lock, we also need to
serialize ttwu_local() using that, otherwise, once we drop the
rq->lock from ttwu() it can race with ttwu_local().

Reviewed-by: Frank Rowand <frank.rowand@am.sony.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110405152729.192366907@chello.nl
kernel/sched.c