]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: RCU cls_tcindex
authorJohn Fastabend <john.fastabend@gmail.com>
Sat, 13 Sep 2014 03:08:20 +0000 (20:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 16:30:26 +0000 (12:30 -0400)
commita4b67f07dc6f5a77a88dc4070cdfaacab00cceea
tree03f16a1e47e4b4c01dca29868a9b13d86634aa82
parent644cf804581248330e194d21c9cb93ace60f8dc0
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>
include/linux/rtnetlink.h
net/sched/cls_tcindex.c