lightnvm: pblk: recheck for bad lines at runtime
authorJavier González <javier@javigon.com>
Fri, 1 Jun 2018 13:04:16 +0000 (15:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Jun 2018 13:43:53 +0000 (07:43 -0600)
commit1d8b33e05cea69a1b0b7f2f2a7c102b6583a984f
treee591e7a0e7ace394454241a3e42675dc34dff0c7
parent2deeefc02dfff6b554020eb62aecf98814641372
lightnvm: pblk: recheck for bad lines at runtime

Bad blocks can grow at runtime. Check that the number of valid blocks in
a line are within the sanity threshold before allocating the line for
new writes.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-init.c