]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/util.c, ipc_rcu_alloc: cacheline align allocation
authorManfred Spraul <manfred@colorfullife.com>
Thu, 27 Jun 2013 23:54:05 +0000 (09:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:39:03 +0000 (16:39 +1000)
commitf45eede37a9011937e45dbae7ae1d588571a0fac
tree527c35579c3e3902008a962c14420e406221f928
parent9a2d5cf18d72fb3a00f17d00196d92760cf94697
ipc/util.c, ipc_rcu_alloc: cacheline align allocation

Enforce that ipc_rcu_alloc returns a cacheline aligned pointer on SMP.

Rationale:
The SysV sem code tries to move the main spinlock into a seperate cacheline
(____cacheline_aligned_in_smp). This works only if ipc_rcu_alloc returns
cacheline aligned pointers.
vmalloc and kmalloc return cacheline algined pointers, the implementation
of ipc_rcu_alloc breaks that.

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/util.c