From: Eric Dumazet Date: Fri, 11 Jan 2008 06:35:21 +0000 (-0800) Subject: [DECNET] ROUTE: fix rcu_dereference() uses in /proc/net/decnet_cache X-Git-Tag: v2.6.24-rc8~7^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d89d7944fead211422e21fb7ea70ed3b903a79e;p=pandora-kernel.git [DECNET] ROUTE: fix rcu_dereference() uses in /proc/net/decnet_cache In dn_rt_cache_get_next(), no need to guard seq->private by a rcu_dereference() since seq is private to the thread running this function. Reading seq.private once (as guaranted bu rcu_dereference()) or several time if compiler really is dumb enough wont change the result. But we miss real spots where rcu_dereference() are needed, both in dn_rt_cache_get_first() and dn_rt_cache_get_next() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed