Searched hist:"0 bcceadceb0907094ba4e40bf9a7cd9b080f13fb" (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | route.c | diff 0bcceadceb0907094ba4e40bf9a7cd9b080f13fb Thu Jan 10 12:55:57 CET 2008 Eric Dumazet <dada1@cosmosbay.com> [IPV4] ROUTE: fix rcu_dereference() uses in /proc/net/rt_cache
In 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 rt_cache_get_first() and rt_cache_get_next()
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
|