From: Eric Dumazet <eric.dumazet@gmail.com>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [RFC] lockdep warning in gen_kill_estimator
Date: Wed, 08 Sep 2010 21:23:03 +0200 [thread overview]
Message-ID: <1283973783.2428.11.camel@edumazet-laptop> (raw)
In-Reply-To: <20100908121628.0eee5294@nehalam>
Le mercredi 08 septembre 2010 à 12:16 -0700, Stephen Hemminger a écrit :
> But that commit adds unnecessary bh_disable
> -------
Yes I mentioned it in the original patch discussion
> Subject: [PATCH] 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 <shemminger@vyatta.com>
>
> --- a/net/core/gen_estimator.c 2010-09-08 12:13:55.182851300 -0700
> +++ b/net/core/gen_estimator.c 2010-09-08 12:14:07.401063663 -0700
> @@ -274,9 +274,9 @@ void gen_kill_estimator(struct gnet_stat
> 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);
>
>
>
next prev parent reply other threads:[~2010-09-08 19:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 18:27 [RFC] lockdep warning in gen_kill_estimator Stephen Hemminger
2010-09-08 18:40 ` Eric Dumazet
2010-09-08 19:16 ` Stephen Hemminger
2010-09-08 19:23 ` Eric Dumazet [this message]
2010-09-08 20:02 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1283973783.2428.11.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox