From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DE77C433F5 for ; Wed, 9 Feb 2022 12:29:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 790196B0073; Wed, 9 Feb 2022 07:29:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 73F316B0074; Wed, 9 Feb 2022 07:29:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 62DE36B0075; Wed, 9 Feb 2022 07:29:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0022.hostedemail.com [216.40.44.22]) by kanga.kvack.org (Postfix) with ESMTP id 52F196B0073 for ; Wed, 9 Feb 2022 07:29:59 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0CFBF987A4 for ; Wed, 9 Feb 2022 12:29:59 +0000 (UTC) X-FDA: 79123173318.12.54BF5E8 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by imf12.hostedemail.com (Postfix) with ESMTP id A0E074000F for ; Wed, 9 Feb 2022 12:29:58 +0000 (UTC) Received: by mail-qv1-f45.google.com with SMTP id c14so1563295qvl.12 for ; Wed, 09 Feb 2022 04:29:58 -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=bZ4n5xnUvJB73UNvbkIpkA5VEhbDV7K2a5snwgZx8o+GI4KMErh1td15x4UaUNTIL3 3gTvAUya6Hhy8+bgSayBj64HkH5vw2SJG/LB1jkdS0br7XUbq7Iv4Mh5uWM/5Xk/cdhx Tw+GhyfOJHxvuos5Iiu6hSucelvR4ytlYgvz+cfrhvNRLaDuYavhBUb8YSB7sIVMx0V+ Rr52ALHIUXztHPO+vuC3QbGYusEiUUAg4Hr3Vj3XYcEKNLyX2Gtp7vU8pJ1lgTdB4MYT XbWbJt5FIg/flru7mQYGXMR/S/iNdatnft/vRrsGW+wD5fT4YHVVz1DxzG+6mChyhJqz rNlA== X-Gm-Message-State: AOAM530nKj5h2MSuJUozH/GZGZDAso8x7gT93CKlGTC/tg3Y/LE5qLiS S82CMdMttVsEHVSPocpWNj4mFQ== X-Google-Smtp-Source: ABdhPJwf9mdnK2ldlbFJ89Gp7ICZZlJoeyugDA0YNF0idT1dfs12KR4knXDFD3wj+Sh7mIvt9ShqvQ== 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-Stat-Signature: 1zhar7yhbacsyy5j6qpyyhg8qo7kd7ax Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=ziepe.ca header.s=google header.b=Z4Eu786o; spf=pass (imf12.hostedemail.com: domain of jgg@ziepe.ca designates 209.85.219.45 as permitted sender) smtp.mailfrom=jgg@ziepe.ca; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: A0E074000F X-HE-Tag: 1644409798-521205 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: 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