On Mon, Aug 11, 2008 at 06:12:35PM -0700, David Miller wrote:Could you explain this more? I've thought this synchronize_rcu() is just to prevent this (and what these comments talk about?): void dev_deactivate(struct net_device *dev) { bool running; netdev_for_each_tx_queue(dev, dev_deactivate_queue, &noop_qdisc); dev_deactivate_queue(dev, &dev->rx_queue, &noop_qdisc); dev_watchdog_down(dev); /* Wait for outstanding qdisc-less dev_queue_xmit calls. */ synchronize_rcu(); do { while (some_qdisc_is_running(dev, 0)) yield(); /* * Double-check inside queue lock to ensure that all effects * of the queue run are visible when we return. */ running = some_qdisc_is_running(dev, 1); /* * The running flag should never be set at this point because * we've already set dev->qdisc to noop_qdisc *inside* the same * pair of spin locks. That is, if any qdisc_run starts after * our initial test it should see the noop_qdisc and then * clear the RUNNING bit before dropping the queue lock. So * if it is set here then we've found a bug. */ } while (WARN_ON_ONCE(running)); } Jarek P. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Peter Zijlstra | Re: [PATCH] x86: add the debugfs interface for the sysprof tool |
| Greg KH | [patch 00/45] 2.6.24-stable review |
git: | |
| Gerrit Renker | [PATCH 24/37] dccp: Processing Confirm options |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
| Joakim Tjernlund | ucc_geth: nf_conntrack: table full, dropping packet. |
