netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>
Subject: Re: [NET]: Prevent multiple qdisc runs
Date: Mon, 19 Jun 2006 10:36:50 -0400	[thread overview]
Message-ID: <1150727810.5815.78.camel@jzny2> (raw)
In-Reply-To: <20060619142928.GA17191@gondor.apana.org.au>

On Tue, 2006-20-06 at 00:29 +1000, Herbert Xu wrote:

> Correct.  When qdisc_run happens we take an skb off the head of the
> queue.  If it can't be transmitted right away, we try to put it back
> in the same spot.
> 
> If you have two qdisc_run's happening at the same time then that spot
> could be different.
> 

Ok, but:
The queue lock will ensure only one of the qdisc runs (assuming
different CPUs) will be able to dequeue at any one iota in time, no?
And if you assume that the cpu that manages to get the tx lock as well
is going to be contending for the qlock in ordewr to requeue, then the
only scenario i can see the race happening is when you have one CPU
faster than the other.
Did i miss something?

cheers,
jamal


  reply	other threads:[~2006-06-19 14:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19 12:15 [NET]: Prevent multiple qdisc runs Herbert Xu
2006-06-19 13:33 ` jamal
2006-06-19 13:42   ` Herbert Xu
2006-06-19 14:23     ` jamal
2006-06-19 14:29       ` Herbert Xu
2006-06-19 14:36         ` jamal [this message]
2006-06-19 22:33           ` Herbert Xu
2006-06-20 14:42             ` jamal
2006-06-20 23:52               ` Herbert Xu
2006-06-22 19:31                 ` jamal
2006-06-22 22:43                   ` Herbert Xu
2006-06-23  0:52                     ` jamal
2006-06-23  3:35                       ` Herbert Xu
2006-06-24 13:50                         ` Jamal Hadi Salim
2006-06-20  6:57 ` David Miller
2006-06-20  7:00   ` Herbert Xu

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=1150727810.5815.78.camel@jzny2 \
    --to=hadi@cyberus.ca \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).