lightnvm: pblk: allocate bio size more accurately
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:18 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit875d94f3a4838f2243334e5ce55ac8153f9bbf5b
tree93577e6000070396c0c3b6e42e51fe4dd9d593df
parent6ca2f71f3e3d94d188000b420ce0529b07f3ce95
lightnvm: pblk: allocate bio size more accurately

Wait until we know the exact number of ppas to be sent to the device,
before allocating the bio.

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