aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/aic7xxx/queue.h
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-04-14 19:11:31 +0300
committerPekka Enberg <penberg@cs.helsinki.fi>2008-04-27 18:28:17 +0300
commit834f3d119234b35a1985a2449831d99356637937 (patch)
tree3106946ecbe174935daa7ac2ff4c7806cc3004b8 /drivers/scsi/aic7xxx/queue.h
parent224a88be40c45c0da5bdc45a8118004a37c60e8a (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 'drivers/scsi/aic7xxx/queue.h')
0 files changed, 0 insertions, 0 deletions