From patchwork Wed Jul 31 09:41:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 11067419 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 0928713A0 for ; Wed, 31 Jul 2019 09:42:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E953120415 for ; Wed, 31 Jul 2019 09:42:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD12126CFF; Wed, 31 Jul 2019 09:42: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,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 72A1C20415 for ; Wed, 31 Jul 2019 09:42:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726331AbfGaJmP (ORCPT ); Wed, 31 Jul 2019 05:42:15 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:35588 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfGaJmP (ORCPT ); Wed, 31 Jul 2019 05:42:15 -0400 Received: by mail-lf1-f67.google.com with SMTP id p197so46948095lfa.2 for ; Wed, 31 Jul 2019 02:42:14 -0700 (PDT) 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=rqG+cIJiTcKTl4jj+UyKsbLA405xn5hnEZuM+vQ9m2s=; b=0gCycQ1IpbD4/DIdgmoTf//wxXx6+VbiEOx9PBs7wipdDuyJLOje2wWajDg7uLGj2L P3pnhFhpvZsQKL1bAOTTEeyEB26aidRybFixoH8AQ61n3qHTq5aTCppDV5vVnC96wyth fjTf0u1l0BlYNU1YX6aA5v/jsBeznHmUz/PVQAtq9R11+BoTDD1mDw/o2/iL64GkgC1C Weixn0ora792RiXSORUxmHYJbtdkhy3vRx8vdtQgrkkBm8dlcKQzdgIoC0kidLJ8vJJM A1FOIRQb1ic5Uu+BAP77II6khgO7FH8qqgKX8i89VvPXBhyKWhAjSjiUrosS64sAX++i omvA== 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=rqG+cIJiTcKTl4jj+UyKsbLA405xn5hnEZuM+vQ9m2s=; b=QI7FgJVurvD0crCPt0D06L2UNkEyiNWG8mTy6iYJ3WjKRVtpae/StA0brYD/3OeBRK Zq83xXdtZhSOF30KbPEPA+2ig/QjWrWKQxqyy7EvVgf57S0wNdexflxME39iiUFlpod3 3vJGmsB3fpHFPa52z+QC8DLrfp1MlDfvhFodTQJaLDAS/k4xtfjvenSjYSZNZmd/4ElA AAKmebiueQSabseTxG6gUon7UIM4xdr95Y34oGaQ+t+/ufoGwX5/CaqJbVmbgvZmWDxV ZSQPK0+hQGQkf25Z2G29p4+T2D+vsfb4Sq/x1TnxqtupSi9Py/ixoqXmklAKLIE9pf5W Xnvw== X-Gm-Message-State: APjAAAXaY27+4+/zd6UxiIGcvr26/fTP9dDZSCYeXrbtRkFHzuaGYrNo 3MaZ7RVWl11Uw+3O6tMtOss= X-Google-Smtp-Source: APXvYqwgjLjCynceI0reBeEaL7wIlQZc3sok3R7oUvc1CqgSMjQm5/sluf7+n7dLWAOLW5dZ8sZ3KA== X-Received: by 2002:ac2:4466:: with SMTP id y6mr13167058lfl.0.1564566133483; Wed, 31 Jul 2019 02:42:13 -0700 (PDT) Received: from titan.lan (90-230-197-193-no86.tbcn.telia.com. [90.230.197.193]) by smtp.gmail.com with ESMTPSA id t4sm15408200ljh.9.2019.07.31.02.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 02:42:12 -0700 (PDT) From: Hans Holmberg To: Matias Bjorling Cc: Christoph Hellwig , =?utf-8?q?Javier_Gonz=C3=A1lez?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH 0/4] lnvm/pblk mapping cleanups Date: Wed, 31 Jul 2019 11:41:32 +0200 Message-Id: <1564566096-28756-1-git-send-email-hans@owltronix.com> X-Mailer: git-send-email 2.7.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 cleans up the metadata allocation/mapping in lnvm/pblk by moving over to kvmalloc for metadata and moving metadata mapping down to the lower lever driver where blk_rq_map_kern can be used. Hans Holmberg (4): lightnvm: remove nvm_submit_io_sync_fn lightnvm: move metadata mapping to lower level driver lightnvm: pblk: use kvmalloc for metadata block: stop exporting bio_map_kern block/bio.c | 1 - drivers/lightnvm/core.c | 43 ++++++++++++--- drivers/lightnvm/pblk-core.c | 116 +++++---------------------------------- drivers/lightnvm/pblk-gc.c | 19 +++---- drivers/lightnvm/pblk-init.c | 38 ++++--------- drivers/lightnvm/pblk-read.c | 22 +------- drivers/lightnvm/pblk-recovery.c | 39 ++----------- drivers/lightnvm/pblk-write.c | 20 +------ drivers/lightnvm/pblk.h | 31 +---------- drivers/nvme/host/lightnvm.c | 45 +++++---------- include/linux/lightnvm.h | 8 +-- 11 files changed, 96 insertions(+), 286 deletions(-)