From: Patrick McHardy <kaber@trash.net> Date: Thu, 17 Jul 2008 15:48:22 +0200What might make sense is to have a special Qdisc_root structure which is simply: struct Qdisc_root { struct Qdisc qd; struct list_head qdisc_list; }; Everything about tree level synchronization would be type explicit. Yes, as you say, the qdisc iteration would get slightly ugly. But that doesn't seem to be a huge deal. But it seems a clean solution to the child qdisc visibility problem. About u32_list, that thing definitely needs some spinlock. The consultation of that list, and refcount mods, only occur during config operations. So it's not like we have to grab this lock in the data paths. If we really want to sweep this problem under the rug, there is another way. Have the qdisc_destroy() RCU handler kick off a workqueue, and grab the RTNL semaphore there during the final destruction calls. :-) -- 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
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Rafael J. Wysocki | Re: Linux 2.6.27-rc5: System boot regression caused by commit a2bd7274b47124d2fc4d... |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
