mm/mempolicy.c: add rcu read lock to protect pid structure
authorZeng Zhaoming <zengzm.kernel@gmail.com>
Thu, 2 Dec 2010 22:31:13 +0000 (14:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Dec 2010 22:51:14 +0000 (14:51 -0800)
commit55cfaa3cbdd29c4919ecb5fb8965c310f357e48c
tree914fad20ce59c42bd3781820c8fb73286581a5ae
parent1f64d69c7ad2e48e697493e45590679f7a69b7b2
mm/mempolicy.c: add rcu read lock to protect pid structure

find_task_by_vpid() should be protected by rcu_read_lock(), to prevent
free_pid() reclaiming pid.

Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c