slab: implement bulk alloc in SLAB allocator
authorJesper Dangaard Brouer <[email protected]>
Tue, 15 Mar 2016 21:53:50 +0000 (14:53 -0700)
committerLinus Torvalds <[email protected]>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit2a777eac173a53b33f2f7dbed2b61a1f5eb0b531
treec499f583786db5cd2ae9da5130be1051539eb586
parentd5e3ed66d6f260b3bb68cb5cf0fe79777e8febf0
slab: implement bulk alloc in SLAB allocator

This patch implements the alloc side of bulk API for the SLAB allocator.

Further optimization are still possible by changing the call to
__do_cache_alloc() into something that can return multiple objects.
This optimization is left for later, given end results already show in
the area of 80% speedup.

Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c