]> Git Repo - linux.git/commit
ipc/sem.c: cacheline align the ipc spinlock for semaphores
authorManfred Spraul <[email protected]>
Wed, 26 May 2010 21:43:42 +0000 (14:43 -0700)
committerLinus Torvalds <[email protected]>
Thu, 27 May 2010 16:12:49 +0000 (09:12 -0700)
commit31a7c4746e9925512afab30557dd445d677cc802
tree7f7b39331aa51b77c159b046d406b12aec24de11
parent0a2b9d4c79671b05956806ede5d054e03ae56280
ipc/sem.c: cacheline align the ipc spinlock for semaphores

Cacheline align the spinlock for sysv semaphores.  Without the patch, the
spinlock and sem_otime [written by every semop that modified the array]
and sem_base [read in the hot path of try_atomic_semop()] can be in the
same cacheline.

Signed-off-by: Manfred Spraul <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: Zach Brown <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/sem.h
This page took 0.054938 seconds and 4 git commands to generate.