On Wednesday 14 November 2007 19:20, David Brownell wrote:No it isn't. It's nothing to do with that because upstream raw spinlocks disable preemption as well; the reason for using raw spinlocks in atomic.h is completely different. Anyway, this whole line of argument is flawed. Even if the atomic.h code is crap, that doesn't give any license to introduce more bad code. Don't raw_spinlock_t's quite explictly disallow preemption in the critical section? Eg. as opposed to spinlock_t, which does not, in -rt. Actually that's wrong. By disabling preemption, you have to explicitly check whether you should be preempted when you enable it again. If you don't disable preemption then you don't have to check anything -- you'll simply be preempted by asynchronous events. Semantics. It's not something like the scheduler or interrupt handler or something that might have real reasons to use raw locks. Anyway, I'm not going to argue about -rt specific stuff any longer. Whatever. It shouldn't go upstream like this though. -
| Davide Libenzi | [patch 7/8] fdmap v2 - implement sys_socket2 |
| Greg Kroah-Hartman | [PATCH 018/196] coda: convert struct class_device to struct device |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| David Newall | Re: Slow DOWN, please!!! |
git: | |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
