From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 232B672 for ; Mon, 29 Nov 2021 16:48:57 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 0251F68B05; Mon, 29 Nov 2021 17:48:53 +0100 (CET) Date: Mon, 29 Nov 2021 17:48:52 +0100 From: Christoph Hellwig To: Joao Martins Cc: Christoph Hellwig , linux-mm@kvack.org, Andrew Morton , Dan Williams , Vishal Verma , Dave Jiang , Naoya Horiguchi , Matthew Wilcox , Jason Gunthorpe , John Hubbard , Jane Chu , Muchun Song , Mike Kravetz , Jonathan Corbet , nvdimm@lists.linux.dev, linux-doc@vger.kernel.org Subject: Re: [PATCH v6 09/10] device-dax: set mapping prior to vmf_insert_pfn{,_pmd,pud}() Message-ID: <20211129164852.GB27705@lst.de> References: <20211124191005.20783-1-joao.m.martins@oracle.com> <20211124191005.20783-10-joao.m.martins@oracle.com> <0439eb48-1688-a4f4-5feb-8eb2680d652f@oracle.com> <96b53b3c-5c18-5f93-c595-a7d509d58f92@oracle.com> <20211129073235.GA23843@lst.de> Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Nov 29, 2021 at 03:49:46PM +0000, Joao Martins wrote: > Hmmm -- if by individual helpers moving to __dev_dax_{pte,pmd,pud}_fault() > it would be slightly less straighforward. Unless you might mean to move > to check_vma() (around the dax_alive() check) and that might actually > remove the opencoding of dax_read_lock in dax_mmap() even. > > I would rather prefer that this cleanup around dax_read_{un,}lock is > a separate patch separate to this series, unless you feel strongly that > it needs to be part of this set. Feel free to keep it as-is.