]> 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)
commitde54e703a4229e4688eb77b32b1c27861384e22a
treea615443d5f3c5ebe13616ad9331800d9b1bf466b
parent8224cbd80be15908ecb6351b90291596e8bdcf79
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