From patchwork Fri Oct 5 13:34:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Konopko X-Patchwork-Id: 10628165 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 E6B26112B for ; Fri, 5 Oct 2018 13:38:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D164428FB0 for ; Fri, 5 Oct 2018 13:38:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C56DD2907C; Fri, 5 Oct 2018 13:38:16 +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,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 7ECCF28FB0 for ; Fri, 5 Oct 2018 13:38:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728708AbeJEUhB (ORCPT ); Fri, 5 Oct 2018 16:37:01 -0400 Received: from mga04.intel.com ([192.55.52.120]:4640 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727701AbeJEUhA (ORCPT ); Fri, 5 Oct 2018 16:37:00 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Oct 2018 06:38:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,344,1534834800"; d="scan'208";a="268738344" Received: from gklab-106-154.igk.intel.com ([10.102.106.154]) by fmsmga005.fm.intel.com with ESMTP; 05 Oct 2018 06:37:58 -0700 From: Igor Konopko To: mb@lightnvm.io, javier@cnexlabs.com Cc: linux-block@vger.kernel.org, marcin.dziegielewski@intel.com, igor.j.konopko@intel.com Subject: [PATCH 0/5] lightnvm: pblk: Flexible metadata Date: Fri, 5 Oct 2018 15:34:32 +0200 Message-Id: <20181005133437.25255-1-igor.j.konopko@intel.com> X-Mailer: git-send-email 2.14.4 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 This series of patches extends the way how pblk can store L2P sector metadata. After this set of changes any size of NVMe metadata (including 0) is supported. Igor Konopko (5): lightnvm: pblk: Do not reuse DMA memory on partial read lightnvm: pblk: Helpers for OOB metadata lightnvm: Flexible DMA pool entry size lightnvm: Disable interleaved metadata lightnvm: pblk: Support for packed metadata drivers/lightnvm/core.c | 33 ++++++++++---- drivers/lightnvm/pblk-core.c | 77 +++++++++++++++++++++++++------- drivers/lightnvm/pblk-init.c | 54 +++++++++++++++++++++- drivers/lightnvm/pblk-map.c | 21 ++++++--- drivers/lightnvm/pblk-rb.c | 3 ++ drivers/lightnvm/pblk-read.c | 56 +++++++++++------------ drivers/lightnvm/pblk-recovery.c | 28 +++++++----- drivers/lightnvm/pblk-sysfs.c | 7 +++ drivers/lightnvm/pblk-write.c | 14 ++++-- drivers/lightnvm/pblk.h | 55 +++++++++++++++++++++-- drivers/nvme/host/lightnvm.c | 7 ++- include/linux/lightnvm.h | 9 ++-- 12 files changed, 278 insertions(+), 86 deletions(-)