On Friday 19 October 2007 08:31, akpm@linux-foundation.org wrote:Ah, thanks, but can we just use my earlier patch that does the proper __bit_spin_unlock which is provided by bit_spin_lock-use-lock-bitops.patch This primitive should have a better chance at being correct, and also potentially be more optimised for each architecture (it only has to provide release consistency). I have attached the patch here just for reference, but actually I am submitting it properly as part of a patch series today, now that the base bit lock patches have been sent upstream. This looks wrong, because it would allow the store unlocking flags to pass a load within the critical section. stores aren't allowed to pass loads in x86 (only vice versa), so you might have been confused by looking at x86's spinlocks into thinking this will work. However on powerpc and sparc, I don't think it gives you the right types of barriers.
| Michal Piotrowski | Re: 2.6.23-rc3-mm1 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Fred Tyler | Slow, persistent memory leak in 2.6.20 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Antonio Almeida | HTB accuracy for high speed |
