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

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to