OSDN Git Service

lightnvm: pblk: propagate errors when reading meta
authorIgor Konopko <igor.j.konopko@intel.com>
Sat, 4 May 2019 18:38:02 +0000 (20:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 May 2019 16:19:18 +0000 (10:19 -0600)
commitd165a7a6f5aa05dfdfc164e24c11b6458a523ff7
treea02eedc457fb198b506e305b1b28951a7234e2fe
parent2b0ae81e2a6f2114a68bdcc410bd1d72bacc97ad
lightnvm: pblk: propagate errors when reading meta

Read errors are not correctly propagated. Errors are cleared before
returning control to the io submitter. Change the behaviour such that
all read errors exept high ecc read warning status is returned
appropriately.

Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
Reviewed-by: Javier González <javier@javigon.com>
Reviewed-by: Hans Holmberg <hans.holmberg@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-recovery.c