lightnvm: pblk: set mempool and workqueue params.
authorJavier González <jg@lightnvm.io>
Mon, 26 Jun 2017 09:57:28 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 22:27:39 +0000 (16:27 -0600)
commitef5764946b1314e0aa1ab261493de6b9aa482ff9
tree20994287473b382deffea5f0877f1da8277d772f
parentb20ba1bc749ce0cd7a74d24f23826a6462c3de53
lightnvm: pblk: set mempool and workqueue params.

Make constants to define sizes for internal mempools and workqueues. In
this process, adjust the values to be more meaningful given the internal
constrains of the FTL. In order to do this for workqueues, separate the
current auxiliary workqueue into two dedicated workqueues to manage
lines being closed and bad blocks.

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-init.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h