From patchwork Mon Nov 5 11:41:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10667907 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 5A20F15A6 for ; Mon, 5 Nov 2018 11:42:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48425296F8 for ; Mon, 5 Nov 2018 11:42:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C30129712; Mon, 5 Nov 2018 11:42:04 +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 BE5D8296F8 for ; Mon, 5 Nov 2018 11:42:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728136AbeKEVBV (ORCPT ); Mon, 5 Nov 2018 16:01:21 -0500 Received: from mail-it1-f173.google.com ([209.85.166.173]:51280 "EHLO mail-it1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbeKEVBV (ORCPT ); Mon, 5 Nov 2018 16:01:21 -0500 Received: by mail-it1-f173.google.com with SMTP id h13so12198221itl.1 for ; Mon, 05 Nov 2018 03:42:02 -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=k6QTiGprAgQRCextATqUFgSWVx4ot42LkiK3YA4/zpU=; b=qqJ5GxO+o9qlE8zxSO3v18w/UxIMyo/NkXVZL0/gy9csP6HqnDRmg6pVDH9qci6GTI EkCw0dsj2DTkNtMJ6brK4OlKGBopCc2a8tsZrRQEmKUyVJZrvvX2mr7RAEjQWvyeftZd e9eauclIN0+25W8XT+BpCCcfeZJtOuwIJz/Y6nGBlAsOEP64d2CkpTiNxlS7KbESiv4x cbWaFrvHzmUoiqQ+t5ZDQ5PW5SX6Ak4RKBEoiepdeaQ////FYKU7AfpnhzqFj0Jwk9lO mk9FGg0IMLmu+CM9wAbATzJDgervedzp9J1NywdBoFSCjZWgM60kS8giVKmXHel5nzVN V4FQ== 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=k6QTiGprAgQRCextATqUFgSWVx4ot42LkiK3YA4/zpU=; b=C0KU2XZ4RpC8hyclXLasZ1ECM76RKag/Wiz9lK6zStIV7pfr8mqfGNLE1/key718Hy w76vpm0Na3pshRXN7Yds0YYjGVcgPhXYy3Z/WBOGiooPnRHNS8evf6UcwZV9a3fYeWxD 5elFsr7p58OyMDhrYy2lwYq4nma2EzPEzbreGd2URxzsXPq/p8wGOyPN19HBbiIF7bkL V3aXFmZ6GCswSG2Cl0fzum8QGf0fvguWNQywyRPkFPQYDhp2crXBoDB0CAMhQ+ZN0IqA s9NjKZC1K/pW5kfUwVzZmQF1LX35k9hzjiHGfGM5HakC4zjb5d/4oUt8N/XZxLCsZ3s2 1mHQ== X-Gm-Message-State: AGRZ1gLY/7stKwgef7Ss69Sf6ebQ8Q2QHZPOWesx6XpqoWc896m7iE8D lGYJAd1iTpRMyFjL7NO86sJjzA== X-Google-Smtp-Source: AJdET5eDhbBRSpsnJylWDQqPV95BZ/EwLK+9FyeKhHSCLs0EmT7JVEIs9aqjQB+0Bct4Jb6Vx8erTg== X-Received: by 2002:a24:d703:: with SMTP id y3-v6mr6795531itg.154.1541418122185; Mon, 05 Nov 2018 03:42:02 -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 186-v6sm14880824itf.11.2018.11.05.03.42.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 03:42:01 -0800 (PST) From: Hans Holmberg X-Google-Original-From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH 0/7] PBLK Bugfixes and cleanups Date: Mon, 5 Nov 2018 12:41:06 +0100 Message-Id: <20181105114113.30932-1-hans.ml.holmberg@cnexlabs.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. 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(-)