History

net_sched: get rid of tcfa_rcu

gen estimator has been rewritten in commit 1c0d32fde5bd ("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.

Cong Wang committed 9 years ago

Commit d7fb60b1 parent da8ab572 files · +8 −11Browse files

Showing the changes to include/net (1 of 2 files). Show all

Unified · Split

include/net/act_api.h+0−2
@@ -34,7 +34,6 @@ struct tc_action { · 33 unmodified lines
3434 struct gnet_stats_queue tcfa_qstats;
3535 struct net_rate_estimator __rcu *tcfa_rate_est;
3636 spinlock_t tcfa_lock;
37− struct rcu_head tcfa_rcu;
3837 struct gnet_stats_basic_cpu __percpu *cpu_bstats;
3938 struct gnet_stats_queue __percpu *cpu_qstats;
4039 struct tc_cookie *act_cookie;
@@ -50,7 +49,6 @@ struct tc_action { · 9 unmodified lines
5049 #define tcf_qstats common.tcfa_qstats
5150 #define tcf_rate_est common.tcfa_rate_est
5251 #define tcf_lock common.tcfa_lock
53−#define tcf_rcu common.tcfa_rcu
5452
5553 /* Update lastuse only if needed, to avoid dirtying a cache line.
5654 * We use a temp variable to avoid fetching jiffies twice.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t