]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: do not use a mempool for line bitmaps
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:09 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit5aa91f9cf2097dea555031fd4ed445a8ba167ddd
tree295cca8ebf81a6edd0a546edb8aab8a30efa1148
parent05fcb3bfb59dcbdae44cf3c0c12df837b76e539e
lightnvm: pblk: do not use a mempool for line bitmaps

pblk holds two sector bitmaps: one to keep track of the mapped sectors
while the line is active and another one to keep track of the invalid
sectors. The latter is kept during the whole live of the line, until it
is recycled. Since we cannot guarantee forward progress for the mempool
in this case, get rid of the mempool and simply allocate memory through
kmalloc.

Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-init.c
drivers/lightnvm/pblk-recovery.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h