]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fold get bb tbl when using dual/quad plane mode
authorMatias Bjørling <m@bjorling.me>
Fri, 19 Feb 2016 12:56:58 +0000 (13:56 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:45:53 +0000 (14:45 -0700)
commitf4cb8731b9ea09f606fa853b6a3636d7990aecf8
treeda9483977df6e4d457d0ea0687d2d990ed961184
parent3dddd384b2a6acf47d20608a0a7120b94b3a90ac
lightnvm: fold get bb tbl when using dual/quad plane mode

When the media manager runs in dual or quad plane mode, lightnvm
abstracts away plane specific commands. This poses a problem for
get bad block table, as it reports bad blocks per plane, making the
table either two or four times bigger than expected. Fold the bad block
list before returning.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
drivers/nvme/host/lightnvm.c
include/linux/lightnvm.h