From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f45.google.com ([209.85.218.45]:34573 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbdH2Vf2 (ORCPT ); Tue, 29 Aug 2017 17:35:28 -0400 Received: by mail-oi0-f45.google.com with SMTP id w10so37918030oie.1 for ; Tue, 29 Aug 2017 14:35:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <150389211501.25151.6477753201827914462.stgit@dwillia2-desk3.amr.corp.intel.com> <150389212075.25151.17146973298430877023.stgit@dwillia2-desk3.amr.corp.intel.com> <20170829212606.GC8608@lst.de> From: Dan Williams Date: Tue, 29 Aug 2017 14:35:27 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] fs, xfs: perform dax_device lookup at mount To: Christoph Hellwig Cc: linux-fsdevel , Jan Kara , "linux-nvdimm@lists.01.org" , "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-ext4 Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Aug 29, 2017 at 2:31 PM, Dan Williams wrote: > On Tue, Aug 29, 2017 at 2:26 PM, Christoph Hellwig wrote: >> Call me nitpicky, but.. >> >> First this really should be three patches, one for the DAX code, one >> for the VFS code and one for XFS. The DAX and XFS bits looks fine to >> me: >> >> Reviewed-by: Christoph Hellwig >> >> But I'm a little worried about stuffing more DAX knowledge into the >> block mount_bdev helper. For now it's probably ok as everything >> else would involve a lot of refactoring and/or duplication, but >> I'm generally not too happy about it. > > I think this is why we ended up with calling dax_get_by_host() in > ->iomap_begin() because the mount_bdev() touches I started with back > when this was first introduced were not very palatable. I agree with > the direction to move to mount_dax() in the future. I can respin this > into three patches and a TODO comment about how we want to kill the > dax knowledge in mount_bdev() going forward. Actually, why not just do this directly in xfs_fs_mount()? I think I can refactor this to not touch mount_bdev() and put all the details in the per-fs mount/umount paths.