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-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5d201f07204893c02ef85d562bfcc71299f06f60;p=openwrt%2Fstaging%2Fblogic.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 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; }