From: Javier González Date: Fri, 5 Jan 2018 13:16:15 +0000 (+0100) Subject: lightnvm: pblk: ignore high ecc errors on recovery X-Git-Tag: v4.19~1665^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d201f07204893c02ef85d562bfcc71299f06f60;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Matias Bjørling Signed-off-by: Jens Axboe --- diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c index fd38036..1d5e961 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; }