* Oleg Nesterov (oleg@redhat.com) wrote:Yep, agreed that it also sounds like added complexity in locking rules, and I've not yet seen the benefit of it. Because adding smp_mb__after_lock() is _only_ useful on x86. Most other architectures _will_ suffer from a performance degradation, unless you implement the __read_lock_noacquire. I fully agree with the bugfix. Given we can later build around the smp__mb_after_lock() to eliminate the performance deterioration on non-x86 architectures by adding a __read_lock_noacquire() primitive, I guess this can be done in a later phase as an optimization. I do not care if performance are not perfect for all architectures at this point. What I really care about is that we do not introduce new locking, atomic ops or memory barrier semantics that only make sense for a single architecture and limit others. Given that we can eventually move to a __read_lock_noacquire()/smp_mb__after_lock() scheme, then adding just smp_mb__after_lock() in the first place does not seem like a bad move. It will just degrade performance of non-x86 architectures until __read_lock_noacquire() or something similar comes. So it looks fine if the code path is critical enough to justify adding such new memory barrier. As long as we don't end up having smp_mb__after_ponies(). Cheers, Mathieu -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -- 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
| Max Krasnyansky | Re: Inquiry: Should we remove "isolcpus= kernel boot option? (may have realtime us... |
| Jeremy Allison | Re: [RFC] Heads up on sys_fallocate() |
| Randy Dunlap | Re: -mm merge plans for 2.6.23 (pcmcia) |
| Damien Wyart | ACPI power off regression in 2.6.23-rc8 (NOT in rc7) |
git: | |
| Josip Rodin | Re: bnx2_poll panicking kernel |
| Linus Torvalds | Re: [GIT]: Networking |
| Denys Fedoryshchenko | thousands of classes, e1000 TX unit hang |
