From: Peter Zijlstra Date: Mon, 18 Apr 2011 09:24:34 +0000 (+0200) Subject: sched: Fix sched_domain iterations vs. RCU X-Git-Tag: v3.0-rc1~403^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=057f3fadb347e9c51b07e1b277bbdda79f976768;p=pandora-kernel.git sched: Fix sched_domain iterations vs. RCU Vladis Kletnieks reported a new RCU debug warning in the scheduler. Since commit dce840a08702b ("sched: Dynamically allocate sched_domain/ sched_group data-structures") the sched_domain trees are protected by RCU instead of RCU-sched. This means that we need to include rcu_read_lock() protection when we iterate them since disabling preemption doesn't suffice anymore. Reported-by: Valdis.Kletnieks@vt.edu Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1302882741.2388.241.camel@twins Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed