commit | 8332904aa971ed4547514f57c8b3780ad4f0f949 | [log] [tgz] |
---|---|---|
author | John Fastabend <john.fastabend@gmail.com> | Fri Sep 12 20:08:20 2014 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat Sep 13 12:29:59 2014 -0400 |
tree | 03f16a1e47e4b4c01dca29868a9b13d86634aa82 | |
parent | cc91210cd2f6832db1a174269627d97b7d4f2c80 [diff] |
net: sched: RCU cls_tcindex Make cls_tcindex RCU safe. This patch addds a new RCU routine rcu_dereference_bh_rtnl() to check caller either holds the rcu read lock or RTNL. This is needed to handle the case where tcindex_lookup() is being called in both cases. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>