From: Sven Eckelmann Date: Sat, 18 Sep 2010 19:01:17 +0000 (+0200) Subject: Staging: batman-adv: Remove unneeded rcu_read_lock X-Git-Tag: v2.6.37-rc1~60^2~3^2~548 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=952c699c06f562b07dba4b1f91dfc02de928545d;p=pandora-kernel.git Staging: batman-adv: Remove unneeded rcu_read_lock Regions which do not use rcu functions don't need to protected by rcu_read_lock. If we want to protect data from being freed than it must be covered by the same read-side critical section or otherwise the grace period may already ended and freed the memory before we called rcu_read_lock again. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed