Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5824514ybi; Wed, 31 Jul 2019 04:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFU2spT7sev+T2C2O2Cqpru7bgc92BvhuweKBGU6HhKEs3Z4RMwtZ0A0kyvRJ1kAYl5cRy X-Received: by 2002:a17:902:aa03:: with SMTP id be3mr119548996plb.240.1564570814411; Wed, 31 Jul 2019 04:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564570814; cv=none; d=google.com; s=arc-20160816; b=LjPz72+Qi3vM6OQyM0hlDfDNapkN99G+m0JSpEJ0E7IezO/C4HT3ir+897f4lcszFA U4apHyFDC4Rn+PLxNAEdFxjAWZV5jCpOaEVEPq1N/bBm5G0Jd7Zl71tR7TIYADWtydGs FM28x945FK2gjlbWsEvbftT5+BE/jrJwpGgrMJvzY3ylSscu8D2NEkqHy9KjxkDIldPt fkOG8YW78CSXVS9NR2UvTxFdHBIPtjadzu3CmFNkokzne4PpBzNu/47yibT48KWBVoSb fmGQP0KnyE+554E8cKNtshvsapBmujbjz+tLrnO/cc6M8YhkiSW0lQx5RRUtqQt1Crxn CSEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=rqG+cIJiTcKTl4jj+UyKsbLA405xn5hnEZuM+vQ9m2s=; b=EMqqKT9QBXesF1KzrnsKJf32PMwJFz6N+y9T60wbpkfQcfmqYevq5Yht0NNl/52bDp 3mtTO6YhryHgs2NX3r413TlD6hPmw9YcjA0UXt4/WriCl4xNwJeuett1lV9zPsJkfxQL fB9vgjQT7lS1khG5T0ypvHVM0iBU7bMQZWK/4cOrLmFGubmi3SEBFWK/9/lfrLxb0Zta V2YV3jih08r6KJbmEnhNMqf1vwMp5nNJvEouD+0l4YgCfn/ZvhNpsfNH0wX7mYBftzcr rfD3hKu63cI7vuqt82IYkexARxfmACThdRhdxH0+aASz/1RFpZLfXhWvIsdbvTvwD25n 2NVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=0gCycQ1I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p123si1608924pga.12.2019.07.31.03.59.59; Wed, 31 Jul 2019 04:00:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=0gCycQ1I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726843AbfGaJmQ (ORCPT + 99 others); Wed, 31 Jul 2019 05:42:16 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:37234 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbfGaJmP (ORCPT ); Wed, 31 Jul 2019 05:42:15 -0400 Received: by mail-lf1-f68.google.com with SMTP id c9so46923029lfh.4 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=cNunFcNktXGkSBhkKQ7X9gMmvGgQlqEZLyAj96XiwhlIvwuYgx7c5j8YVOWy7NveU7 dZVbQT8atyuLTskfsvrxnLOvB84o8iW8zIXF0vBHtnv/+pIhQOY8nxqsxGwektOs6WwD FEuMEKv/1sqcTL+shEhjdNwFQJduKJ/EciJL8HY1x1slLNFO1hgLsGDurOyxmBnv7btK ccT/8L4U3t8WVmTfMxbBWj/vlJjK8nAFA+6ueZV3NgYywcZxDJd4RpWLyYBrNSUsuHP1 tUj9ITfPSDu53qKqzaAqjyOt2OmlNPBbOKWVUU/nqGSVBW3YJHpeRSzkYV/k7k9HxOuI TDZA== X-Gm-Message-State: APjAAAXXt5KzVWdyjmtkTfDu2I7Wg939ZPgmCXNdaG5GHBmhPAk37T0p IdiFA5FZ+LV6sM0jRAYaCP4= 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=20Gonz=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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4