datapath: Convert rcu_dereference() to correct variant.
authorJesse Gross <jesse@nicira.com>
Mon, 6 Dec 2010 23:15:47 +0000 (15:15 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 13 Dec 2010 21:40:34 +0000 (13:40 -0800)
commite33adfd0cea19a8a4dab5cdbe80e2fd636e48374
tree4d4ec0b73c79e6617e31026b486f1ef52f65d80d
parentad9197112ae58f338491e6344a9f66073e4bce95
datapath: Convert rcu_dereference() to correct variant.

Using rcu_dereference() makes lockdep complain if rcu_read_lock
is not held.  This is OK if the update side lock is held.  This
adds checks to see if RTNL lock is held, if that is also a
correct form of protection.  Alternately, it enforces that RTNL
must be held.

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