]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: get rid of tcfa_rcu
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 11 Sep 2017 23:33:30 +0000 (16:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Sep 2017 03:41:02 +0000 (20:41 -0700)
commit3c38b47dcdd5dfd0f3dc5b3d6fa01500b964cce6
tree06503aa2783d3a75739ec13263b1644779316274
parent2f349e944870a02b5c2b833fa8b1421da242bde4
net_sched: get rid of tcfa_rcu

gen estimator has been rewritten in commit b7452f9c4e64
("net_sched: gen_estimator: complete rewrite of rate estimators"),
the caller is no longer needed to wait for a grace period.
So this patch gets rid of it.

This also completely closes a race condition between action free
path and filter chain add/remove path for the following patch.
Because otherwise the nested RCU callback can't be caught by
rcu_barrier().

Please see also the comments in code.

Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
net/sched/act_api.c