summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-01-05 14:16:15 +0100
committerJens Axboe <axboe@kernel.dk>2018-01-05 08:50:12 -0700
commit5d201f07204893c02ef85d562bfcc71299f06f60 (patch)
tree75b0447ab74d38f22cfa9d96a669fcfa97926d58
parente53927393b9987b7c986b6364c27111077f0ea3e (diff)
downloadlinux-5d201f07204893c02ef85d562bfcc71299f06f60.tar.gz
linux-5d201f07204893c02ef85d562bfcc71299f06f60.tar.bz2
linux-5d201f07204893c02ef85d562bfcc71299f06f60.zip
lightnvm: pblk: ignore high ecc errors on recovery
On recovery, do not stop L2P recovery if reads report high ECC error as the data is still available. 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>
-rw-r--r--drivers/lightnvm/pblk-recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c
index fd3803656e68..1d5e961bf5e0 100644
--- a/drivers/lightnvm/pblk-recovery.c
+++ b/drivers/lightnvm/pblk-recovery.c
@@ -288,7 +288,7 @@ next_read_rq:
/* At this point, the read should not fail. If it does, it is a problem
* we cannot recover from here. Need FTL log.
*/
- if (rqd->error) {
+ if (rqd->error && rqd->error != NVM_RSP_WARN_HIGHECC) {
pr_err("pblk: L2P recovery failed (%d)\n", rqd->error);
return -EINTR;
}