]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaaff2b694857da64aa463401e125bafcab53a90b
treee591e7a0e7ace394454241a3e42675dc34dff0c7
parente90ca4a15d81e24a6cf8172a03d98bd17ff2432e
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