Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1994004pxb; Thu, 4 Nov 2021 12:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFWaoSL04Jz3MKOiUtJtsVq941nRaimrJUAs9ZL2rQ7gLAz3Ut1FT2jkzXjJSGnfj3aIkC X-Received: by 2002:a05:6402:274f:: with SMTP id z15mr10410117edd.200.1636052761634; Thu, 04 Nov 2021 12:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636052761; cv=none; d=google.com; s=arc-20160816; b=C7C+r2Pv/mISQR43J8zE/0daVcTjmF8l2t49NGBF58gfNjA43r7aB/4cv4+ZeQi0m+ w2DTDK/LW59piD6vDABdwelIjbuUlykVqm0YqNcpZsz+hD8JN0EQXzGCN+/HkOxw5tb3 DEaiouiRdo44NAalzT//MP9pB6OXFtynThphR9RHDRIRSz/tUDNDkFWu4/49woDTwMxL we8lJSxVDqb2cpiwCpM0duTOiTpZPHWLhsa1OCI56K1oTyg3aNDJSyvJ5Vc1a7DK19YR TAqRtmGHvBlF0bdrWh8ztjtRneDaG1lWwlf264uanLJAKgLAbEMbkA5yAghnbwF/E4si cYog== 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=Z1N9T8o6MnvNFtMLNCbRMiS7Wcj2jqfGnb6nvygQaN0=; b=XOeOSQgMfhA8v/2Pj79R/8UL+guWIfUggH3Ej9umj0o/yFlRtTD6T6yJVMmSMP7mZZ 4y7o8NyOBXxdXBmm06PoMcEgHVK3DWNYyD87HB3WLOiiASyAKLcX6LhRaycvakv4YFdv 4/HR/rpilu4qVOaZs/oijhdLTAlV1RrBcTMP0Cqd4Fv6ThWYOe5ugUeGZiW77XkhgPUv X1EQ/VzKeNhcFisuhXdt9eo7l0HleDZNJKEKkaqMp6VpIKU8hEih5IbJA+oAx4N8Qggg J/TKdBXcYlP2kaUOuqqcf4VhyXNPw1qgTT6lykcd/6PB7BVLX6mtYdiJfW31veWu+QUb /p1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bv7jKp3Y; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si13011666ejy.78.2021.11.04.12.05.27; Thu, 04 Nov 2021 12:06:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=bv7jKp3Y; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234202AbhKDTHW (ORCPT + 99 others); Thu, 4 Nov 2021 15:07:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:46554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233947AbhKDTHW (ORCPT ); Thu, 4 Nov 2021 15:07:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B349D61051; Thu, 4 Nov 2021 19:04:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636052683; bh=6QPcBULZTXdCSGAGAHS0TvJSZvMO/KqkGnLb73dsPBc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bv7jKp3Yw1Rdie9XZDWNK3pIPqQoPNhud+EqCebVCSNFnXX1tJKRugwxgw+L+OWGR 2MLp/jTRGzvo1NoqGoAE4h9SET6WwR2eC6KxGEbcMshVRiJ3shOzD+v3fRuOlCDV9R 9G84hJuxDUt0jNPNpbLWG5OuhVHMx1EBgq9VUuR/29TPkJQ2u2B/sSSO0SotyKedJk vIVOo9i23NlZDiCmEUONOL1Ve83kSVqtxk9oDKbsfMth7fdhjwVmAa4V9JJhr/fdzN 4WL/W9RmR5LhAyY6JcVhB45zjOxTxwGLojZm72rrw52Ey6bohVc7ZaZCNnE2bWDg9r QNnReKci3yYEQ== Date: Thu, 4 Nov 2021 12:04:43 -0700 From: "Darrick J. Wong" To: Dan Williams Cc: Christoph Hellwig , Eric Sandeen , Mike Snitzer , Ira Weiny , device-mapper development , linux-xfs , Linux NVDIMM , linux-s390 , linux-fsdevel , linux-erofs@lists.ozlabs.org, linux-ext4 , virtualization@lists.linux-foundation.org Subject: Re: futher decouple DAX from block devices Message-ID: <20211104190443.GK24333@magnolia> References: <20211018044054.1779424-1-hch@lst.de> <21ff4333-e567-2819-3ae0-6a2e83ec7ce6@sandeen.net> <20211104081740.GA23111@lst.de> <20211104173417.GJ2237511@magnolia> <20211104173559.GB31740@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Nov 04, 2021 at 11:10:19AM -0700, Dan Williams wrote: > On Thu, Nov 4, 2021 at 10:36 AM Christoph Hellwig wrote: > > > > On Thu, Nov 04, 2021 at 10:34:17AM -0700, Darrick J. Wong wrote: > > > /me wonders, are block devices going away? Will mkfs.xfs have to learn > > > how to talk to certain chardevs? I guess jffs2 and others already do > > > that kind of thing... but I suppose I can wait for the real draft to > > > show up to ramble further. ;) > > > > Right now I've mostly been looking into the kernel side. An no, I > > do not expect /dev/pmem* to go away as you'll still need it for a > > not DAX aware file system and/or application (such as mkfs initially). > > > > But yes, just pointing mkfs to the chardev should be doable with very > > little work. We can point it to a regular file after all. > > Note that I've avoided implementing read/write fops for dax devices > partly out of concern for not wanting to figure out shared-mmap vs > write coherence issues, but also because of a bet with Dave Hansen > that device-dax not grow features like what happened to hugetlbfs. So > it would seem mkfs would need to switch to mmap I/O, or bite the > bullet and implement read/write fops in the driver. That ... would require a fair amount of userspace changes, though at least e2fsprogs has pluggable io drivers, which would make mmapping a character device not too awful. xfsprogs would be another story -- porting the buffer cache mignt not be too bad, but mkfs and repair seem to issue pread/pwrite calls directly. Note that xfsprogs explicitly screens out chardevs. --D