diff options
Diffstat (limited to 'net/openvswitch/datapath.h')
| -rw-r--r-- | net/openvswitch/datapath.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index 4067ea41be28..ba13be4a680f 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h | |||
| @@ -145,6 +145,8 @@ int lockdep_ovsl_is_held(void); | |||
| 145 | #define ASSERT_OVSL() WARN_ON(unlikely(!lockdep_ovsl_is_held())) | 145 | #define ASSERT_OVSL() WARN_ON(unlikely(!lockdep_ovsl_is_held())) |
| 146 | #define ovsl_dereference(p) \ | 146 | #define ovsl_dereference(p) \ |
| 147 | rcu_dereference_protected(p, lockdep_ovsl_is_held()) | 147 | rcu_dereference_protected(p, lockdep_ovsl_is_held()) |
| 148 | #define rcu_dereference_ovsl(p) \ | ||
| 149 | rcu_dereference_check(p, lockdep_ovsl_is_held()) | ||
| 148 | 150 | ||
| 149 | static inline struct net *ovs_dp_get_net(struct datapath *dp) | 151 | static inline struct net *ovs_dp_get_net(struct datapath *dp) |
| 150 | { | 152 | { |
