aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-01-05 08:16:15 -0500
committerJens Axboe <axboe@kernel.dk>2018-01-05 10:50:12 -0500
commit5d201f07204893c02ef85d562bfcc71299f06f60 (patch)
tree75b0447ab74d38f22cfa9d96a669fcfa97926d58
parente53927393b9987b7c986b6364c27111077f0ea3e (diff)
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:
288 /* At this point, the read should not fail. If it does, it is a problem 288 /* At this point, the read should not fail. If it does, it is a problem
289 * we cannot recover from here. Need FTL log. 289 * we cannot recover from here. Need FTL log.
290 */ 290 */
291 if (rqd->error) { 291 if (rqd->error && rqd->error != NVM_RSP_WARN_HIGHECC) {
292 pr_err("pblk: L2P recovery failed (%d)\n", rqd->error); 292 pr_err("pblk: L2P recovery failed (%d)\n", rqd->error);
293 return -EINTR; 293 return -EINTR;
294 } 294 }