On Sun, Jan 28, 2007 at 04:24:35PM +0100, Ingo Molnar wrote:Would it be possible to come up with something common between this primitive and the one that Oleg Nesterov put together for Jens Axboe? http://lkml.org/lkml/2006/11/29/330 Oleg's approach acquires a lock on the update side, which Peter would not want in the uncontended case -- but perhaps there is some way to make Oleg's approach be able to safely test both counters so as to avoid acquiring the lock if there are no readers. Oleg, any chance of this working? I believe it does, but have not thought it through fully. If it does turn out that we cannot converge these, I believe that Peter's implementation needs an smp_mb() at both the beginning and the end of barrier_sync(). Without the first smp_mb(), the test in barrier_sync() might precede the prior change, and without the second smp_mb() the barrier_sync() might slide after the following cleanup code. (But I could easily be misunderstanding the code using barrier_sync().) Thanx, Paul -
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: fallocate-implementation-on-i86-x86_64-and-powerpc.patch |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Natalie Protasevich | [BUG] New Kernel Bugs |
