From patchwork Mon Nov 5 12:26:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10668115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6E901709 for ; Mon, 5 Nov 2018 12:26:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4F42294D0 for ; Mon, 5 Nov 2018 12:26:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7AF7294D9; Mon, 5 Nov 2018 12:26:45 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,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 72DB9294D0 for ; Mon, 5 Nov 2018 12:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729015AbeKEVqO (ORCPT ); Mon, 5 Nov 2018 16:46:14 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:42008 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbeKEVqO (ORCPT ); Mon, 5 Nov 2018 16:46:14 -0500 Received: by mail-ed1-f65.google.com with SMTP id h21-v6so6862495edq.9 for ; Mon, 05 Nov 2018 04:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=4oWqVd7aJitPmc1BR7PgpfQzZ7u//yDgTqBlN/OETIM=; b=Ov3ADJYk/K77dlLlmkaOga/TyP8Dx7N08HmrLgyi5/zkGKygLKzGOtCqYkRSPLXOxm riIOaPElXowhkQ5qVJUznqDP8XdTpH0t2jhLH4a+96xAOyJlbZp+ZzdUKGZvFxkMOhoW eomR58KFiZ902YooStvPJxXScT7AVgu8ObAZb19T6F5NWb2aTN03GolvrmN0U6qW4RLH +hLab6z8or0WChuG7ua3ocUy7BdU2gbySncJM2vTLVDbGo6Mu0Ad0fDcrShxS0zdOunp 5a3ftbnO/YH+EgsZBrZQ6jld7ZvthuCmAGxAjoZQa4c0ClZ7Wpwvofp3on1D4Hr8akod 0nuQ== 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; bh=4oWqVd7aJitPmc1BR7PgpfQzZ7u//yDgTqBlN/OETIM=; b=t3RxWNaYHHZF7HYczCkJTQYBg1EfGsVJQws7SBWXTB2vcChqJu2kril9aRGKA8Cn2y FyBZnnunkyprf5vq9Dopbofl/g7vLKZUyVD/GI4hbmWpLFoZ9wlrVYD3PV6/IdUc5IOP ecGn55CvkO9v3CKl29Ha2pGFrQt0MVLCFOli6ZpG5BOZok3n8QymCRg4QYGfLxmO9h3z xkTcwkuhubHtmDLtxGJjnFS/ZXu5hfi7/b2Mhwdpc5f3GWkrpyrXd+xI/sV2tOsIXDJ/ 4cG8TWIRhP3ss5ztUsjXltEGO0hkfadHsJXJD/Uu9qByj6H2pVc8IDQ1ajFbiKVRUTlS msqg== X-Gm-Message-State: AGRZ1gJtUoteP5syCIDOlX6ulxyAPlVVbttEpyTjwYsPFJKIA+ie8flN CGLB8Bh/tidxERSgivkmfYBx9w== X-Google-Smtp-Source: AJdET5fLYMd/dhPTVnhFru6OoLGWdwmSEVpRaYK+HuLKW28+xduDtwOnjCqrtAROK6zOCJcGKyspqA== X-Received: by 2002:a50:f396:: with SMTP id g22-v6mr18012230edm.110.1541420802956; Mon, 05 Nov 2018 04:26:42 -0800 (PST) Received: from ch-lap-hans.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 9-v6sm7046056ejw.46.2018.11.05.04.26.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 04:26:42 -0800 (PST) From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH v2 0/7] PBLK Bugfixes and cleanups Date: Mon, 5 Nov 2018 13:26:03 +0100 Message-Id: <20181105122610.1555-1-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.17.1 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: Hans Holmberg This series is a slew of bugfixes and cleanups for PBLK, mostly fixing issues found during corner-case testing in QEMU. Changes since v1: Messed up from:, now the patches apply with the correct author Pardon the mess. Hans Holmberg (7): lightnvm: pblk: fix resubmission of overwritten write err lbas lightnvm: pblk: account for write error sectors in emeta lightnvm: pblk: stop writes gracefully when running out of lines lightnvm: pblk: set conservative threshold for user writes lightnvm: pblk: remove unused macro lightnvm: pblk: fix pblk_lines_init error handling path lightnvm: pblk: remove dead code in pblk_recov_l2p drivers/lightnvm/pblk-init.c | 48 +++++++++++++++++----------- drivers/lightnvm/pblk-map.c | 47 ++++++++++++++++----------- drivers/lightnvm/pblk-recovery.c | 1 - drivers/lightnvm/pblk-rl.c | 5 ++- drivers/lightnvm/pblk-write.c | 55 +++++++++++++++++++++++--------- drivers/lightnvm/pblk.h | 16 ++++++++-- 6 files changed, 114 insertions(+), 58 deletions(-) Reviewed-by: Javier González