From patchwork Tue Nov 6 13:33:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10670413 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 08F4A13A4 for ; Tue, 6 Nov 2018 13:33:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9FE92A3CE for ; Tue, 6 Nov 2018 13:33:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD4582A3DF; Tue, 6 Nov 2018 13:33:40 +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 67C6E2A3CE for ; Tue, 6 Nov 2018 13:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388257AbeKFW6y (ORCPT ); Tue, 6 Nov 2018 17:58:54 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:40945 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388149AbeKFW6x (ORCPT ); Tue, 6 Nov 2018 17:58:53 -0500 Received: by mail-it1-f193.google.com with SMTP id e11so14299417itl.5 for ; Tue, 06 Nov 2018 05:33:39 -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=56kHi9j0wGZevuI7rRWeoo7guXBMz/aip8CvDcy64JQ=; b=mpe0M/nwQOPwzTv+tCJvTqSaFX1cuSkXyoKrANyw6wHzWkmfis0FDaDvNMuEqp5ac8 1RWOmOHrts09vZcEYlmr/EahhAXMIhbI+Xn23i3y4xdupyW2x+Ou8ZfgesAa4NHRctyN o19JMeKJ/BbLwuPAmwC66NNQXuPbOym87dpFxhEwnl3Fr5LI94BcT16E/RULFvU8V/7h w8kz6l6jDFAh9JJDyTly1M8BpZwjfTVwP4qVBFiTlCICpngKERt18qwTBlg35ja623Oq KkTtTHD2BD2+9IBb05VYy0WJK/fxOJBnSOGox+jLy2k5+kWAOZjrOTFG7FROEa0C3/qG 0eIQ== 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=56kHi9j0wGZevuI7rRWeoo7guXBMz/aip8CvDcy64JQ=; b=f2m66dqt8XsvoEd7DmDDm0qZAIT8vrXYqLO8IxkqHOCbKXvQO3WSzxGkA0rsGOMYzV E5aHa2Cv4rhrQ702pTLMNVXBW8icjZsu68apHk2Yr4bY75F13kZkrmyaq7xZbr4U+HPK k6Uk0rAQpkrSnpIGZHZ5j4KgrYzWPwoLnQKtQhT07yt1Opx0O6RGdTr8KMHdJNUKm15y x61812nRYOYYkDYyvwY9a4ftaC1MFJFpFSOjQeXp8MwAgFuqgQJfmHX2NPCrEw1IyRt9 5ageTBJNBeOZVDeF8SegiBh7XHf7I44nxrgWxcm6WtW4VAiZGsxDwDpE8ofsoPhig9Kh 07cQ== X-Gm-Message-State: AGRZ1gK9mE5VgBabz/+zJM2yfaaZN06TuXeyeHf3/SCxasH8DmQ0+H4C LG1eMabkOn/giNBcphzJ2uAYGg== X-Google-Smtp-Source: AJdET5eI+69JEeInrRBgGBaIh2yEm8YoKHqmG6ga9IISIpLm9yD8LIwsci22tK1hCKdiLCTygMdE5g== X-Received: by 2002:a02:3545:: with SMTP id y5-v6mr582649jae.7.1541511218609; Tue, 06 Nov 2018 05:33:38 -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 u132-v6sm897282itb.21.2018.11.06.05.33.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 05:33:38 -0800 (PST) From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , Sebastien Boisvert , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH v3 0/7] PBLK Bugfixes and cleanups Date: Tue, 6 Nov 2018 14:33:23 +0100 Message-Id: <20181106133330.26570-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. Changes since v2: Fixed kbuild reported issue and potential divide by zero in: ("lightnvm: pblk: set conservative threshold for user writes") Fixed commit message nitpicks reported by Sebastien The patch-set applies on top of: remote https://github.com/OpenChannelSSD/linux.git branch for-4.21/core 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 | 45 ++++++++++++++++++-------- 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, 116 insertions(+), 53 deletions(-)