From: stephen hemminger Date: Wed, 8 Sep 2010 09:16:28 +0000 (+0000) Subject: pkt_sched: remov unnecessary bh_disable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ca7f8762299bb391c11a81c844224216e925b5c;p=mv-sheeva.git pkt_sched: remov unnecessary bh_disable Now that est_tree_lock is acquired with BH protection, the other call is unnecessary. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index 6743146e4d6..7c2373321b7 100644 --- 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);