]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: use vmalloc for GC data buffer
authorJavier González <jg@lightnvm.io>
Fri, 30 Jun 2017 15:56:39 +0000 (17:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jun 2017 17:08:18 +0000 (11:08 -0600)
commitaba82570d765919d3597a3e17d7ebc0c1f928589
treea615443d5f3c5ebe13616ad9331800d9b1bf466b
parent06d42eecbc94be167accc14cbf0451a21a38c525
lightnvm: pblk: use vmalloc for GC data buffer

For now, we allocate a per I/O buffer for GC data. Since the potential
size of the buffer is 256KB and GC is not in the fast path, do this
allocation with vmalloc. This puts lets pressure on the memory
allocator at no performance cost.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-gc.c
drivers/lightnvm/pblk-read.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h