On Mon, Aug 07, 2006 at 09:33:52PM -0400, jamal wrote:
> 
> Is there a need for a schedule if that happens? i.e assuming that the
> clearing happens because there are no more packets to process. 
> OTOH, if the other side sets the QDISC_RUNNING right after the test,
> then qdisc is running will be entered.

CPU0                            CPU1
__qdisc_run
        netif_queue_stopped
                                netif_wake_queue
                                        __netif_schedule
                                                test_bit
        clear_bit

So you may end up losing that wake event.  The QDISC_RUNNING bit was
originally designed to be used under the qdisc lock, so using it
in a different contexts will require new synchronisation mechanisms.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
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