From patchwork Wed Dec 20 17:21:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 10125991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0D0360245 for ; Wed, 20 Dec 2017 17:23:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8973286E4 for ; Wed, 20 Dec 2017 17:23:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B579B29627; Wed, 20 Dec 2017 17:23:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CA6F286E4 for ; Wed, 20 Dec 2017 17:23:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756019AbdLTRXL (ORCPT ); Wed, 20 Dec 2017 12:23:11 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40131 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756008AbdLTRWe (ORCPT ); Wed, 20 Dec 2017 12:22:34 -0500 Received: by mail-wm0-f66.google.com with SMTP id f206so11105702wmf.5 for ; Wed, 20 Dec 2017 09:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lvpl73ZH0OY2j6FqssDrvbvCKicnITSo9rvTiOk2q7g=; b=W8d7PWuGmiFaFhD18vyDSDRl7gSOG863WU++kk1BWgX45qYatAMFT7uLtguFNajr0o 3n18jWLNFFElD3w9BuzGNMeZPn3yUqVcbHnAM/O2lpRpnwoVSjh5U5jW6ZMslDnMrgHn z2wZs9X+ygHnn43+0wCcoyBe5xARqS5jEGo5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lvpl73ZH0OY2j6FqssDrvbvCKicnITSo9rvTiOk2q7g=; b=EgdgbpXdL171jZOXYWhw9YalZCG80aelMWct5R4NPpX01pe7thr9O0iCL81Q8QhhNR vcsazHHxNNS/35VgbsCO2GVThh9oWaixa0SokGDwztlPFquXUVFvOtwXXEQpsC4PTGWG XsHsa15JDpcaOVRo0zlQtUziZMcGkFMQhAixZrP2g+cNh5zDrQA7e/vC1YgtB/MNEUS9 SAKi2OirB0N4xf2nQzn6mnBvLJTYAYbMw1mgZtiFJgrlNT2+JkA2zj21wTRE6ISBsEdr gqaZTFj2owJn6sxS3OV7CPVKtezpo2Hbwscfmg6NKle7dCWfayv/Y37K0CafVFphPiHC ooiA== X-Gm-Message-State: AKGB3mJwDw1ZvnnyeJz7iezRaYq18BA9RUwEnRUVHcbxnJHQ4PzuZ2WQ Ub9OX0D1FV7UjbYPhYZjSLmnEp3l X-Google-Smtp-Source: ACJfBotn420j4NfS4ksEy59FOBo71U9UZ3cf72nU5/9Mc/iXsEEbEd3yyNOe16W2OEbo4mfoaZE9UA== X-Received: by 10.80.149.253 with SMTP id x58mr6509427eda.152.1513790552881; Wed, 20 Dec 2017 09:22:32 -0800 (PST) Received: from skyninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 26sm15339120eds.67.2017.12.20.09.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 09:22:32 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 19/25] lightnvm: pblk: ignore high ecc errors on recovery Date: Wed, 20 Dec 2017 18:21:59 +0100 Message-Id: <20171220172205.26464-20-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171220172205.26464-1-m@bjorling.me> References: <20171220172205.26464-1-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Javier González 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 --- drivers/lightnvm/pblk-recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ static int pblk_recov_read_oob(struct pblk *pblk, struct pblk_line *line, /* 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; }