diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-14 19:11:31 +0300 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-04-27 18:28:17 +0300 |
commit | 834f3d119234b35a1985a2449831d99356637937 (patch) | |
tree | 3106946ecbe174935daa7ac2ff4c7806cc3004b8 /Documentation/spinlocks.txt | |
parent | 224a88be40c45c0da5bdc45a8118004a37c60e8a (diff) |
slub: Add kmem_cache_order_objects struct
Pack the order and the number of objects into a single word.
This saves some memory in the kmem_cache_structure and more importantly
allows us to fetch both values atomically.
Later the slab orders become runtime configurable and we need to fetch these
two items together in order to properly allocate a slab and initialize its
objects.
Fix the race by fetching the order and the number of objects in one word.
[penberg@cs.helsinki.fi: fix memset() page order in new_slab()]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'Documentation/spinlocks.txt')
0 files changed, 0 insertions, 0 deletions