Thread (4 messages) flat view 4 messages, 3 authors, 2007-10-19

Re: [NET]: Fix possible dev_deactivate race condition

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-10-19 09:30:41
Also in: linuxppc-dev, lkml

On Fri, Oct 19, 2007 at 09:35:19AM +0200, Peter Zijlstra wrote:
quoted
        /* Wait for outstanding qdisc_run calls. */
-       while (test_bit(__LINK_STATE_QDISC_RUNNING, &dev->state))
-               yield();
+       do {
+               while (test_bit(__LINK_STATE_QDISC_RUNNING, &dev->state))
+                       yield();
+
Ouch!, is there really no sane locking alternative? Hashed waitqueues
like for the page lock come to mind.
Well if we ever moved the transmission to full process context
then we'll gladly accept your patch :)

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help