From patchwork Fri Nov 15 00:11:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 11244599 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6CE714BC for ; Fri, 15 Nov 2019 00:11:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B37AA20658 for ; Fri, 15 Nov 2019 00:11:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="DZcZ0SoD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B37AA20658 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id F063C6B0007; Thu, 14 Nov 2019 19:11:38 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EDE0C6B0008; Thu, 14 Nov 2019 19:11:38 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E1C016B000A; Thu, 14 Nov 2019 19:11:38 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0237.hostedemail.com [216.40.44.237]) by kanga.kvack.org (Postfix) with ESMTP id CCFF36B0007 for ; Thu, 14 Nov 2019 19:11:38 -0500 (EST) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 82500180AD81F for ; Fri, 15 Nov 2019 00:11:38 +0000 (UTC) X-FDA: 76156583076.03.vest41_658f0b5b96c25 X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,jhubbard@nvidia.com,:akpm@linux-foundation.org:hch@infradead.org:dan.j.williams@intel.com:ira.weiny@intel.com:jack@suse.cz:jgg@ziepe.ca:axboe@kernel.dk:jglisse@redhat.com:linux-nvdimm@lists.01.org::linux-kernel@vger.kernel.org:jhubbard@nvidia.com,RULES_HIT:30054:30056:30064:30070:30090,0,RBL:216.228.121.65:@nvidia.com:.lbl8.mailshell.net-62.18.0.100 64.10.201.10,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: vest41_658f0b5b96c25 X-Filterd-Recvd-Size: 4215 Received: from hqemgate16.nvidia.com (hqemgate16.nvidia.com [216.228.121.65]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Fri, 15 Nov 2019 00:11:37 +0000 (UTC) Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 14 Nov 2019 16:10:40 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 14 Nov 2019 16:11:36 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 14 Nov 2019 16:11:36 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 15 Nov 2019 00:11:35 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 15 Nov 2019 00:11:35 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 15 Nov 2019 00:11:36 +0000 Received: from blueforge.nvidia.com (Not Verified[10.110.48.28]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Thu, 14 Nov 2019 16:11:35 -0800 From: John Hubbard To: Andrew Morton CC: Christoph Hellwig , Dan Williams , Ira Weiny , Jan Kara , Jason Gunthorpe , Jens Axboe , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , , , LKML , John Hubbard Subject: [PATCH 0/2] mm: devmap: page-freeing related cleanups Date: Thu, 14 Nov 2019 16:11:32 -0800 Message-ID: <20191115001134.2489505-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1573776640; bh=Mrh+2x3rLyg/1Ohx9ZbAHZm/a7AggeIHJioHTmLGuI0=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Type: Content-Transfer-Encoding; b=DZcZ0SoDzKuC008CDMbWmWtK8o3RU+gyRqoH79kkT0C1ay6qRmo2hejSoX2HpGy/B +5FabwWpsUQUGv8HHmkIYTnL1y/2+GbIHQOf+mFA6oxSXk1bk7grxs6uzcJca/E1Xm 8esnQQdLhoMkpKRgjCX2BSCBt9xhr2xYmv9nMeg5OCxdVG2RRQbp1v01apcLfL/nM+ luqycv7RgfjPWuNN9EFxR38gL8JzhKV5dkzHP42ybDarrmwsm+ioY9m1fJDa4Hb+h1 L5/C7iLg1GLeumAXkNYMa/UajJH9HNrt+MaBA2vR328TSNs2V0wznLS3wVBllnpxX1 kU7XWzoQehkGw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, Here are the small devmap page-freeing cleanups as requested, so that they can be reviewed separately from the larger "track dma-pinned pages series" [1] that they were originally part of. I did not add Jan Kara's and Jerome Glisse's reviewed-by tags, because those were for patch 2 but as part of [1], which is different enough from this series that I couldn't treat it as "close enough". Testing: Dan notes that his patch (1) has passed nvdimm unit tests. However, I have not yet done much testing of the two patches together. What I've done so far is to boot up a system that has CONFIG_DEV_PAGEMAP_OPS=y and run LTP tests on it, but none of those tests are exercising free_devmap_managed_page(). Dan, if you could run this combined set through your unit tests, I'd feel a lot better about it. I'll also work on getting my HMM test setup revived. [1] https://lore.kernel.org/r/20191113042710.3997854-1-jhubbard@nvidia.com Dan Williams (1): mm: Cleanup __put_devmap_managed_page() vs ->page_free() John Hubbard (1): mm: devmap: refactor 1-based refcounting for ZONE_DEVICE pages drivers/nvdimm/pmem.c | 6 ---- include/linux/mm.h | 27 +++++++++++++-- mm/memremap.c | 76 ++++++++++++++++++++----------------------- 3 files changed, 60 insertions(+), 49 deletions(-)