From patchwork Fri Jan 5 13:16:15 2018 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: 10146511 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 DEBBC60244 for ; Fri, 5 Jan 2018 13:19:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEA7E28859 for ; Fri, 5 Jan 2018 13:19:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1C9C288BA; Fri, 5 Jan 2018 13:19:47 +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=unavailable 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 7910D28859 for ; Fri, 5 Jan 2018 13:19:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbeAENTG (ORCPT ); Fri, 5 Jan 2018 08:19:06 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35077 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbeAENRA (ORCPT ); Fri, 5 Jan 2018 08:17:00 -0500 Received: by mail-wm0-f67.google.com with SMTP id a79so2427310wma.0 for ; Fri, 05 Jan 2018 05:17:00 -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=IgEdAEbKyfAcLeOMHP+HCyFOni75a4TLt8vuiBRyNDfGV88whCpfETrpFhRWipEGtx QjRjdVXBtptxSOqSkO/CQzdcOWwYHcsjakxdGEkPXmywipaBKqOcH778CYBU7DykGsD1 q95ZB8/9ePBBWQVvbG0o0POd3Cv5bjtVSn6B0= 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=PHRQOCX/KK43FlDjrv0XvzR6sE2JRJvb5B+1j6FrzMxSvu5BP/FxmHuspeyAiGu3Yv piK5peNidGdSg1rJvTIudU+pn5sQDCuM5ZA1qR/4UGXhipDUwfwaGU2oxg566yLHWucg HNdAn+PT388/lSjJVmLa8jIzcgaoGO2rIA+S5T+9qP2oFuRzuG0kpQstr1yz13BwJoD5 1ffGlxyXfdBSUFixOaZvfsThelEXAHDpIltzjge7VMySj6gklZye2vjCdyWpFTSlms2R HvFXuXSwvCUtTVxNyA1vJo5Q+HqvWAz3aNpBOannrw7o/xSL5FC3Qk5AedeezLPTRe0O a8dQ== X-Gm-Message-State: AKGB3mIeS+iBY3NOveelVGp9t6hs8gbvoTDj7c9Gt33qCXoD6fftcppD a0P0ngzHi4Bx2y00F9TlNaZwNA== X-Google-Smtp-Source: ACJfBovq8V6XTB30mS9drOK+AWqiqqGVlw+QS6NNZRUasIlY14nGhCsIKbj4CRwLLXYDAW/likqSOA== X-Received: by 10.80.215.132 with SMTP id w4mr4073280edi.89.1515158219425; Fri, 05 Jan 2018 05:16:59 -0800 (PST) Received: from skyninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id e46sm4228940edb.93.2018.01.05.05.16.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 05:16:58 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 19/25] lightnvm: pblk: ignore high ecc errors on recovery Date: Fri, 5 Jan 2018 14:16:15 +0100 Message-Id: <20180105131621.20808-20-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180105131621.20808-1-m@bjorling.me> References: <20180105131621.20808-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; }