Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1789075pxb; Wed, 9 Feb 2022 04:39:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHKF8PCtFHLBG+28Dui+7l+vNFUGbyMoVuHCwZdumHn8mkLIZtxItGPIvmuhQbjv1zv51J X-Received: by 2002:aa7:da51:: with SMTP id w17mr2271421eds.8.1644410377572; Wed, 09 Feb 2022 04:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644410377; cv=none; d=google.com; s=arc-20160816; b=iO1anl+DqfJI7VJSbwbL0cL36+WMtZyHse7ILl219+XqrTAePvXHydFgW0J/bjn/WT UszkZ8eWiq1fMhNPamXmnne8EXWcB3Quj6TyQau75ko+cv5ZAA4WZG9KPSsVzwYw9rVh +b6kq5p4EBjTpAxamZwV9Wlq0LDU/hCm6eZUS6fEYvxVRuXnRGPKs+vPwo5+lXEKxWLS uolL8pDlOdednz5DPCB7dUfhSfqkMIB8RRPRsEtp+MrMSfrtJ8+etPPIvoFEmqjnzecI uQMwL+610D9BRTrNqC5WOQR91paQR30DRFFcxjeHMcXADQ9WJjqY2apoTbabH3rYW9ae H/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JpFYQSMAVe6I09BHQOjAX13imKhzUaXlc2+fdsD9V6E=; b=bhOdG8AAP/uRnTAgpbllFXKgBiW6+nA+xoy+HqcPed5mt3DDoxAg7MXU+5Bobxfi/I z2pXJ/8b4W45MMUokzA6ptTOnJ/CSUZDyyn9SgyJvorkvyWPmQ91BrHuIZ/3G5XGigld DIe55Gkhx2HrlbOiJOJ9b99/yMeVGn1vtQXVow1nk+twUPE5H7cRrTydgcAkIfGgruop koggRI7Og+1AnuXXRYtsrl34EtpC+sXVXXfGAHJ4nN0gOamCjHco8mwTnDBbwVnjH4Hc nGa/lCkfFKcmgtIGGsHV11fyLw3WruEDetv8RS3hokd+avmXIDm6KsGrNDvV7UXtikEI 2M5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Z4Eu786o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp19si11687349ejc.256.2022.02.09.04.39.12; Wed, 09 Feb 2022 04:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Z4Eu786o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233245AbiBIMa1 (ORCPT + 99 others); Wed, 9 Feb 2022 07:30:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233344AbiBIM37 (ORCPT ); Wed, 9 Feb 2022 07:29:59 -0500 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27124C03C19D for ; Wed, 9 Feb 2022 04:29:59 -0800 (PST) Received: by mail-qv1-xf33.google.com with SMTP id c14so1563294qvl.12 for ; Wed, 09 Feb 2022 04:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JpFYQSMAVe6I09BHQOjAX13imKhzUaXlc2+fdsD9V6E=; b=Z4Eu786ojGcRgS8Eos4sLr66z2Uqqmgi/bDj6/Y33EEsvVWVKeCNJioyDR9vfy9xaY yz3EOxCOZS/4g/fgKsh1/TNwzJVTuJBYxARJaHsw7OoHQBYA7L/O3QtbTl8+Tpf3u32c Go3MoLTkH16938QXNFcpZV2qsCQ+/yOIxJO8+ooqAbmuC9zUdvg0Bg4KHC7DQZrRu5Pr MEV4AdWysZ66pZX4YRzJgy6PJ/mfwT6AapS6FtqHr95tVUvZ/ng6ysJBJp+d6N+bSxfV V5qGUskZ4AiQdRAYVMO4Llk3dzOmsNqH1liuPvseANE5HTBFUWXt5H7TVNAa03BHV8C3 wh9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JpFYQSMAVe6I09BHQOjAX13imKhzUaXlc2+fdsD9V6E=; b=RdmNsiN6JsPDsyZtaBR6Y3PdJ8GDVkn1j02tA0/azUO71Y/q1JISVbsKplBqhK1tw7 6sdPMc65Lgn3hDE9bC4KA5VD9Su+nXn8MuxpYn7ok4RpQqXs42gIXSav+vK3QDAlwZNI czPSZFfD56rqT97lIGMOxqBe/6TkzQlzqg4954nIcj68l/m+GuKiyzgLwH6kRVgpKDUm K1dk/TKM8duaswlWiaYGpQidmeXy9tjHpdLL3QVZOo+cPI0td1o2rHYVqU5ET5LHfgj7 xzdazcIZ4fJN/izq62zVZmXJxIcbqhbCRLGp5tU2yGOMxKSa85x2LvPDNSW2YIGTuWjl 1a9w== X-Gm-Message-State: AOAM530HtjBwgLdpVCF+v/5yU+iOEP7a89zdBE2SlokyUuzo9rzgFYUh 43tjbbEe6YsBT/7S/ia7vZ/fpg== X-Received: by 2002:a05:6214:21ac:: with SMTP id t12mr1263884qvc.123.1644409797997; Wed, 09 Feb 2022 04:29:57 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id w13sm8052274qkb.106.2022.02.09.04.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:29:57 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nHm6e-001DJi-6l; Wed, 09 Feb 2022 08:29:56 -0400 Date: Wed, 9 Feb 2022 08:29:56 -0400 From: Jason Gunthorpe To: Christoph Hellwig Cc: Dan Williams , Andrew Morton , Felix Kuehling , Alex Deucher , Christian =?utf-8?B?S8O2bmln?= , "Pan, Xinhui" , Ben Skeggs , Karol Herbst , Lyude Paul , Alistair Popple , Logan Gunthorpe , Ralph Campbell , Linux Kernel Mailing List , amd-gfx list , Maling list - DRI developers , nouveau@lists.freedesktop.org, Linux NVDIMM , Linux MM Subject: Re: [PATCH 7/8] mm: remove the extra ZONE_DEVICE struct page refcount Message-ID: <20220209122956.GI49147@ziepe.ca> References: <20220207063249.1833066-1-hch@lst.de> <20220207063249.1833066-8-hch@lst.de> <20220209062345.GB7739@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209062345.GB7739@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 09, 2022 at 07:23:45AM +0100, Christoph Hellwig wrote: > On Tue, Feb 08, 2022 at 07:30:11PM -0800, Dan Williams wrote: > > Interesting. I had expected that to really fix the refcount problem > > that fs/dax.c would need to start taking real page references as pages > > were added to a mapping, just like page cache. > > I think we should do that eventually. But I think this series that > just attacks the device private type and extends to the device coherent > and p2p enhacements is a good first step to stop the proliferation of > the one off refcount and to allow to deal with the fsdax pages in another > more focuessed series. It is nice, but the other series are still impacted by the fsdax mess - they still stuff pages into ptes without proper refcounts and have to carry nonsense to dance around this problem. I certainly would be unhappy if the amd driver, for instance, gained the fsdax problem as well and started pushing 4k pages into PMDs. Jason