aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/afs_cm.h
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2009-12-15 19:47:33 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 10:20:10 -0500
commit636c6be823870d829b37fc96655bb8820a6a9be9 (patch)
treedc17d73ae77e6921ca7c88e6b019fe3d72bb9790 /fs/afs/afs_cm.h
parentb97e820ffffbf49e94ed60c9c26f1a54bccae924 (diff)
ipc/sem.c: optimize single semop operations
sysv sem has the concept of semaphore arrays that consist out of multiple semaphores. Atomic operations that affect multiple semaphores are supported. The patch optimizes single semaphore operation calls that affect only one semaphore: It's not necessary to scan all pending operations, it is sufficient to scan the per-semaphore list. The idea is from Nick Piggin version of an ipc sem improvement, the implementation is different: The code tries to keep as much common code as possible. As the result, the patch is simpler, but optimizes fewer cases. 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 'fs/afs/afs_cm.h')
0 files changed, 0 insertions, 0 deletions