diff options
author | Javier González <javier@cnexlabs.com> | 2018-01-05 14:16:15 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-05 16:50:12 +0100 |
commit | 5d201f07204893c02ef85d562bfcc71299f06f60 (patch) | |
tree | 75b0447ab74d38f22cfa9d96a669fcfa97926d58 /drivers | |
parent | lightnvm: set target over-provision on create ioctl (diff) | |
download | linux-5d201f07204893c02ef85d562bfcc71299f06f60.tar.xz 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/lightnvm/pblk-recovery.c | 2 |
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; } |