Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1944566pxb; Thu, 4 Nov 2021 11:12:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2qCKtJ5iEqzPxtmcdav8Jw8btepbx22lRo0n204tBvisB84IQEgMViMs45N5FmQe8GP5o X-Received: by 2002:a05:6602:486:: with SMTP id y6mr37894555iov.104.1636049524997; Thu, 04 Nov 2021 11:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636049524; cv=none; d=google.com; s=arc-20160816; b=dM1k0ktrqW+A5YN5Q22PhSDNWGlhCDswFK+/q9XYMdztubJRA+U5Z4ulkFNA44daBj RUoLuNvuNUJ3kbiyQ6SESVlH57FTmX2CMXCPZV+qnEI1TyV2ehB2+Sg14JDWwWWT+vX2 CG2GYvIFMOuzpzkcZMYgx0ARDVNTjofgvBH+kBrhpshueDfH9yZmnrtPwrQA5Xk56mnc NulRkg8GBDjlukOkY0il8deHPHyuDgl7E+9sz3z3WrkLyKvdKU21rsBCC2X7Zcl7saOg DDsRNcoJTa5rHDtsyBxQvCMEv1eeBcJbEKy5x7jJPc5DDc1K2PVg2BxtG10oMuBUzSVQ 5+5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7mdrEIaynFJhMAYVbY2RCFSQ3xBs/5manpadoyeA8Jg=; b=DRFU0O8akQSEoO7EcDXI0wT6WQlq3SCWYPMvMoX5PMPLXbO5mdUQb6iYIObyHX2Nap BuQ1Oj7+lwv0ex/foX47BIkWOSsg647nvnB2w0fMG+bBovlsly9CaF9ViHukADbhF/3I WZwrnAyMVeiQzvaUKDMt2Wm/Qonvg17l/89pegTHGTof1+CS9BfY/hlXmpXxwE2iUKoo B/h74mfkfkeQSgQ723AsiCBurdwv3wQIRbyjKNkspXjQ5EO6cPZPAwFqVK5YNa/KNx1f yRwDk4gIAmcOEfHeUOLaodTMjKFU++O65E4ejmKcwbJbRk4tECKPvxWHK1sOSMIk+QGK QZ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=0YEcomSc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si3132397iln.66.2021.11.04.11.11.44; Thu, 04 Nov 2021 11:12:04 -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=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=0YEcomSc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234097AbhKDSNJ (ORCPT + 99 others); Thu, 4 Nov 2021 14:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234093AbhKDSNJ (ORCPT ); Thu, 4 Nov 2021 14:13:09 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D488EC061205 for ; Thu, 4 Nov 2021 11:10:30 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id y1so8568807plk.10 for ; Thu, 04 Nov 2021 11:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7mdrEIaynFJhMAYVbY2RCFSQ3xBs/5manpadoyeA8Jg=; b=0YEcomScst+1AzYcEtB+P3/DmeUM77501UDi4utLMr5xdKJlnd8UevBd12j9FnZ3vM pfReEE9Mys+ZVEwliSTF7urxA8Wo0+Hi1QGvdNyLT71G18SgBjzWHXiXc01F/GMcT30o 4sj59niVU83geSVU+jTxOcRmF241hREk19CsoBH8kxr2RQdc6rHN1RFVCxVTxuFK53C5 ubx4NqJpME+C1zDILd+MfHjSjbqUFn2nDpjUaVUu+wM8te1yVWJyRStj28nUJ7WDbMUk H2RDjE1nkFNI+5JNwfhWiSHo+ZLBnVukougjDJ/S9PImKe7sfLSLlzrr4uAIBYjBE48z eouQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7mdrEIaynFJhMAYVbY2RCFSQ3xBs/5manpadoyeA8Jg=; b=qWX0N5tPXG/sIlzCO0UdGVJQy+KLIy3XTsVPnOFK96x+DM1NUP+f50F7fY3J6ZtnZL LdugXDTMOHtSEj5kE7EdM1xcJQCPQ7nrctDDwn3kCvC7nQFmmZBE51VwRmUnIyA02S7q gdB+cjUgP6Mlgw97r3QON0k7ToAgzyCaJJkUA0djYLimRebz7Fcqa1QPcRBmHH9C6U79 YDW3OZyeZzj+ktkcNq33F5TGV/iEjeTmP2z3AGF64VBydKC2HKE6cv4SnUVFNIwHCMKy vcFiFGzIF6wTcKcgA92O4/HzeUYuGtGhu+WBHiJyJoYkarorqoY3WF65dXuWgcJdLLwx c1Gw== X-Gm-Message-State: AOAM531j5ZLIc/uatVh0WaKz/DHc3mWYjEoiRGg8ReIGio+ouazvbNmx ZLAde9KcJjg2PpLQDwP4JisQUtiigpkTJc7iZ7Lb6g== X-Received: by 2002:a17:902:b697:b0:141:c7aa:e10f with SMTP id c23-20020a170902b69700b00141c7aae10fmr33445935pls.18.1636049430346; Thu, 04 Nov 2021 11:10:30 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20211104173559.GB31740@lst.de> From: Dan Williams Date: Thu, 4 Nov 2021 11:10:19 -0700 Message-ID: Subject: Re: futher decouple DAX from block devices To: Christoph Hellwig Cc: "Darrick J. Wong" , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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.