]> git.hungrycats.org Git - linux/commit
[PATCH] lockless semop
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:45:44 +0000 (05:45 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:45:44 +0000 (05:45 -0800)
commit55e8b1a195a813abfb91fae221c481c0fa77b55f
treef44ba50651c432fab0e42a0ab1985d224473972c
parent1af764e128e94b1f3c1c4e4f38259898149cf527
[PATCH] lockless semop

From: Manfred Spraul <manfred@colorfullife.com>

attached is the lockless semop patch. I did another test run with
idle=poll on an pentium III, and it remained unchanged: 99.9% direct
fast path, 0.1% race with wakeup against writing the final result code:

http://khack.osdl.org/stp/282936/environment/proc/slabinfo

That means there is no immediate need to add the two-stage
implementation to finish_wait.

It reduces the spinlock operations on the semaphore array spinlock by 1/3.
ipc/sem.c