]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/util.c, ipc_rcu_alloc: cacheline align allocation
authorManfred Spraul <manfred@colorfullife.com>
Wed, 19 Jun 2013 00:08:30 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:46 +0000 (17:27 +1000)
commit9d89317d5916c275e61d3feb87cbe8817f487a12
treeb2a33e2dd0312e36dc79b14e0da14d7f38c87862
parent13707bcbc2514e794694c0836d7e6c7521ef2697
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