openvswitch: Silence RCU lockdep checks from flow lookup.
Flow lookup can happen either in packet processing context or userspace context but it was annotated as requiring RCU read lock to be held. This also allows OVS mutex to be held without causing warnings. Reported-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com> Reviewed-by: Thomas Graf <tgraf@redhat.com>
This commit is contained in:
@@ -145,6 +145,8 @@ int lockdep_ovsl_is_held(void);
|
||||
#define ASSERT_OVSL() WARN_ON(unlikely(!lockdep_ovsl_is_held()))
|
||||
#define ovsl_dereference(p) \
|
||||
rcu_dereference_protected(p, lockdep_ovsl_is_held())
|
||||
#define rcu_dereference_ovsl(p) \
|
||||
rcu_dereference_check(p, lockdep_ovsl_is_held())
|
||||
|
||||
static inline struct net *ovs_dp_get_net(struct datapath *dp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user