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
| Scott Preece | Re: Linux Foundation Technical Advisory Board Elections |
| Luis R. Rodriguez | Re: [Announce] Linux-tiny project revival |
| Andrew Morton | 2.6.23-rc1-mm2 |
| Dave Hansen | [PATCH 02/24] rearrange may_open() to be r/o friendly |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [BUG] New Kernel Bugs |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
