summaryrefslogtreecommitdiff
path: root/lib/ts_fsm.c
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2009-12-16 00:47:31 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 15:20:09 (GMT)
commitb6e90822e77cd476c18410f7003197d466e36ac6 (patch)
tree2ff18df8c024ae92e7e8912186c34b10b4b6f4bd /lib/ts_fsm.c
parentd4212093dca95c1f52197017d969cc66d5d962aa (diff)
downloadlinux-b6e90822e77cd476c18410f7003197d466e36ac6.tar.xz
ipc/sem.c: optimize if semops fail
Reduce the amount of scanning of the list of pending semaphore operations: If try_atomic_semop failed, then no changes were applied. Thus no need to restart. Additionally, this patch correct an incorrect comment: It's possible to wait for arbitrary semaphore values (do a dec by <x>, wait-for-zero, inc by <x> in one atomic operation) Both changes are from Nick Piggin, the patch is the result of a different split of the individual changes. Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Cc: Nick Piggin <npiggin@suse.de> Cc: Pierre Peiffer <peifferp@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/ts_fsm.c')
0 files changed, 0 insertions, 0 deletions