Eric Dumazet 0bcceadceb [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>
2008-01-10 03:55:57 -08:00
..
2007-11-02 08:47:06 +01:00
2007-12-19 23:38:11 -08:00
2007-10-19 11:53:41 -07:00
2007-10-26 04:06:08 -07:00
2008-01-08 23:30:18 -08:00
2007-10-15 12:26:35 -07:00
2007-10-15 12:26:35 -07:00
2007-10-20 01:34:40 +02:00
2007-04-25 22:28:20 -07:00
2007-10-10 16:48:31 -07:00