diff options
author | Manfred Spraul <manfred@colorfullife.com> | 2013-07-08 23:01:20 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 17:33:28 (GMT) |
commit | 196aa0132fc7261f34b10ae1bfb44abc1bc69b3c (patch) | |
tree | 022d2de428ef8d8c642017adf448790ab803bd96 /fs/open.c | |
parent | 9ad66ae65fc8d3e7e3344310fb0aa835910264fe (diff) | |
download | linux-fsl-qoriq-196aa0132fc7261f34b10ae1bfb44abc1bc69b3c.tar.xz |
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.
[akpm@linux-foundation.org: coding-style fixes]
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions