]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4207064f1b6116226ab978c541b46312101395da
tree93577e6000070396c0c3b6e42e51fe4dd9d593df
parent24e8d211e024695498373c3ae320dc53728a15d8
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