datapath: Don't directly access RCU protected pointers.
authorJesse Gross <jesse@nicira.com>
Sun, 5 Dec 2010 19:22:04 +0000 (11:22 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 13 Dec 2010 21:40:27 +0000 (13:40 -0800)
commitad9197112ae58f338491e6344a9f66073e4bce95
tree5bb7cd5ccbae464ec1e2f6f9b8bac3b8aba56242
parent8dda8c9b63c8803621f900beaa397c673b736197
datapath: Don't directly access RCU protected pointers.

If RTNL lock is used to protected updates to RCU data structures
then it isn't necessary to use rcu_dereference() to access them if
RTNL is held.  This adds rtnl_dereference() to access these pointers
which has several benefits: documents the locking expectations;
checks that RTNL actually is held when run with lockdep; makes
sparse not complain about directly accessing RCU pointers.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c
datapath/dp_sysfs_dp.c
datapath/dp_sysfs_if.c
datapath/tunnel.c