__in_dev_get_rtnl() can use rtnl_dereference()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 1 Dec 2010 01:37:42 +0000 (01:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 20:59:05 +0000 (12:59 -0800)
commit06a9701f4b3e3381dea96fee1cc8a3bb41b0a1f1
treea6cb5d4635b16e9ff450b5e3533b2b27f8de48aa
parentda2033c282264bfba4e339b7cb3df62adb5c5fc8
__in_dev_get_rtnl() can use rtnl_dereference()

If caller holds RTNL, we dont need a memory barrier
(smp_read_barrier_depends) included in rcu_dereference().

Just use rtnl_dereference() to properly document the assertions.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inetdevice.h