lib/pcpu_cache: add a simple per-cpu allocator frontend
authorJens Axboe <axboe@kernel.dk>
Tue, 15 Aug 2017 14:42:00 +0000 (08:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Aug 2017 14:42:00 +0000 (08:42 -0600)
commit0d5a040b5ec8561bcc24174fb16c32d1248cde19
treec9d258138473874fb09ec8096ff242db8ea04935
parentef954844c7ace62f773f4f23e28d2d915adc419f
lib/pcpu_cache: add a simple per-cpu allocator frontend

For high frequence allocations and frees, provide a slab backed
per-cpu cache. For allocations, we check the local cpu cache
first. And on free, we batch free's in units of 16.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/pcpu_cache.h [new file with mode: 0644]
lib/Makefile
lib/pcpu_cache.c [new file with mode: 0644]