From: Manfred Spraul Date: Wed, 16 Dec 2009 00:47:31 +0000 (-0800) Subject: ipc/sem.c: optimize if semops fail X-Git-Tag: v2.6.33-rc1~71^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e90822e77cd476c18410f7003197d466e36ac6;p=pandora-kernel.git 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 , wait-for-zero, inc by 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 Cc: Nick Piggin Cc: Pierre Peiffer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed