sched: use RCU variant of list traversal in for_each_leaf_rt_rq()
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 15 Dec 2008 06:26:48 +0000 (11:26 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 20:39:14 +0000 (21:39 +0100)
commit80f40ee4a07530cc3acbc239a9299ec47025825b
tree3feb69ea882c314b518f53fd6eae9db634918003
parent1bda71282ded6a2e09a2db7c8884542fb46bfd4f
sched: use RCU variant of list traversal in for_each_leaf_rt_rq()

Impact: fix potential of rare crash

for_each_leaf_rt_rq() walks an RCU protected list (rq->leaf_rt_rq_list),
but doesn't use list_for_each_entry_rcu(). Fix this.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c