projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a034ee3
)
pkt_sched: remov unnecessary bh_disable
author
stephen hemminger
<shemminger@vyatta.com>
Wed, 8 Sep 2010 09:16:28 +0000
(09:16 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 10 Sep 2010 19:47:59 +0000
(12:47 -0700)
Now that est_tree_lock is acquired with BH protection, the other
call is unnecessary.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gen_estimator.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/gen_estimator.c
b/net/core/gen_estimator.c
index 6743146e4d6b49a61204395b49e4ded721de2703..7c2373321b74317c1c36918c20726cba10490768 100644
(file)
--- a/
net/core/gen_estimator.c
+++ b/
net/core/gen_estimator.c
@@
-274,9
+274,9
@@
void gen_kill_estimator(struct gnet_stats_basic_packed *bstats,
while ((e = gen_find_node(bstats, rate_est))) {
rb_erase(&e->node, &est_root);
- write_lock
_bh
(&est_lock);
+ write_lock(&est_lock);
e->bstats = NULL;
- write_unlock
_bh
(&est_lock);
+ write_unlock(&est_lock);
list_del_rcu(&e->list);
call_rcu(&e->e_rcu, __gen_kill_estimator);