David Miller wrote:Still working my way through the patches, but this one caught my eye (we had this before and it caused quite a few problems). One of the problems is that only the uppermost qdisc is destroyed immediately, child qdiscs are still visible on qdisc_list and are removed without any locking from the RCU callback. There are also visibility issues for classifiers and actions deeper down in the hierarchy. The previous way to work around this was quite ugly. qdisc_destroy() walked the entire hierarchy to unlink inner classes immediately from the qdisc_list (commit 85670cc1f changed it to what we do now). That fixed visibility issues for everything visible only through qdiscs (child qdiscs and classifiers). Actions are also visible globally, so this might still be a problem, not sure though since they don't refer to their parent (haven't thought about it much yet). Another problem we had earlier with this was that qdiscs previously assumed changes (destruction) would only happen in process context and thus didn't disable BHs when taking a read_lock for walking the hierarchy (deadlocking with write_lock in BH context). This seems to be handled correctly in your tree by always disabling BHs. The remaining problem is data that was previously only used and modified under the RTNL (u32_list is one example). Modifications during destruction now need protection against concurrent use in process context. I still need to get a better understanding of how things work now, so I won't suggest a fix until then :) -- 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
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Tony Lindgren | [PATCH 75/90] ARM: OMAP: 243x: Add mappings for SDRC and SMS |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Radu Rendec | htb parallelism on multi-core platforms |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
| Linus Torvalds | Re: [GIT]: Networking |
