Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp300670ybl; Tue, 7 Jan 2020 06:24:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyMqc7jWbDbctsrUcYCJeepHRJYnQO2QIWHb4h5Anej8P/bMOvD20mPtJs9OtDD7gus03EC X-Received: by 2002:a05:6830:1112:: with SMTP id w18mr116787129otq.356.1578407080446; Tue, 07 Jan 2020 06:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578407080; cv=none; d=google.com; s=arc-20160816; b=POfd50woEwlJQNqm2lVYfYD1jFnSAM4GFToBAvcGLdqBNUHcRCfXvwDUNhTWGudDP8 LZPiAX0vPacm7lI8d+2PFf0eoA8xTxHxj1SahaUzSrP2N/jj7WlqIX70GKeqWY3UjqB2 MH6NL2bWtKp/0ZGm3IYNmEG4a8YWEPhL5PpApdSJcnKrVtvSHX9HP/+kAHGo/52wa9sQ sJEDb7cz8SPcpqiS+Z/m6XaCKthUFgeGXLttVogDl1cx9bCo1y9uV3Ml93F9SxReY4ku f81xA1ss3Xia1dDhbvuRnDBfaMTSXZDHliZYfnooH1i6TK1x/4YMw93sDWEBI6cUNjZ0 2Ihg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r3VJe/dxyES65jnKtxYvETSNTHRiCAT6fnUUzfyEBsw=; b=mT3dT5KvtKbTrs6aDEyBQtNgTOUNpCDDagoZnp1UIyTH1V81q4TJAlha89Yy0Lpf/3 vXGL/kL1mAuU7+cSCBg2H/D3QBECS2bQOx5CkZgDn/M3U2GlW5RxYINLOT1zOihMVnqC EJGq81T4Um6m1tBXDp1N0pzz0UDA3s/uMsX5D5XslLjpJ85OotBV3iCa5oXJECE66Yyq um9+aXQOlll+wk6jOXLN2XxKF20Z1005RnKpAgfDqOaOsaNN6HhFUu797Y1h9kO+pY41 +5OTfHK5MF5kAhHi37kUn5XlUT3rljvMkTixgsZg6yh7BH8ZEJvBkyYHDuIMUK/WNi80 GIgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=IntyA5IC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id u21si4504218oic.263.2020.01.07.06.24.23; Tue, 07 Jan 2020 06:24:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=IntyA5IC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728325AbgAGOXG (ORCPT + 99 others); Tue, 7 Jan 2020 09:23:06 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41834 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbgAGOXF (ORCPT ); Tue, 7 Jan 2020 09:23:05 -0500 Received: by mail-oi1-f194.google.com with SMTP id i1so17795492oie.8 for ; Tue, 07 Jan 2020 06:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r3VJe/dxyES65jnKtxYvETSNTHRiCAT6fnUUzfyEBsw=; b=IntyA5ICPEcRthqRYPCmMbZcDUdsPJKB41XMg3aNHyS8R6cuHoUT2CPYMdsXtRhIV/ LE4AcTadPsbgzvkcanUbj/feghWprHupsWmFBAPc7sYF+VAsmKBx0fZyJQK8bF8M1Psc 370rbvXm8e9yiT13+D5wg9K9mjUTdZdQ9TNUaJGocfOBIb2O4l3RX+l6g6lrQRLR542K uq6u075ZxqWd1dtGOT1YwXlKc+p25Z2v9ktm+IMQk7DdS4ccYqbvvQwR3hNsxwzI7ML7 uZQ0x6Z/8r+EpXB5udA1qIlwP1zqd7XKjywpXRr4ylCkyezT+6v9gNmT4LaYtbSFwB4R bikA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r3VJe/dxyES65jnKtxYvETSNTHRiCAT6fnUUzfyEBsw=; b=qk+5lOKiyiVj6/3Y7x13gow5HnAhIHFoX+uFMs12jR8wOLlxlipFQ2b1e81YGMr2SV zErgFvj02EbAoJJWSX8WkMB0FH1GXLTgasvOQ29FCEloY2NNNFz3wp9+qx0y6aCWawkj TT4W38y4WNE8TP+HPalgv4H/PcfbmpSiZD5PSPEnds9u3LcuG/oJuSL2TuK4SOabMV3Y Kt6OcBTdp1B+XCd4F7xxAqKaexayQXy35QlVaUNhF0l8bLUEck7PoLqZ4ohTuiA3sDxu O7ceJv7CevijQkCbLd7JyvfLEMnobG9YXV8HCWTc55NMus/xMpQQRIQ/EOILxSj7agBG Qkkg== X-Gm-Message-State: APjAAAWhL1HepDHR6PxgIKSgkUss1ezKO07l9uXOF85rQv8qVPt33LRX 2YSc5X+VeDggmYWPT7/YBB0ki3GLemY6jPeVbG6MmQ== X-Received: by 2002:a05:6808:b37:: with SMTP id t23mr7383807oij.149.1578406985047; Tue, 07 Jan 2020 06:23:05 -0800 (PST) MIME-Version: 1.0 References: <20190821175720.25901-1-vgoyal@redhat.com> <20190821175720.25901-2-vgoyal@redhat.com> <20190826115152.GA21051@infradead.org> <20190827163828.GA6859@redhat.com> <20190828065809.GA27426@infradead.org> <20190828175843.GB912@redhat.com> <20190828225322.GA7777@dread.disaster.area> <20191216181014.GA30106@redhat.com> <20200107125159.GA15745@infradead.org> In-Reply-To: <20200107125159.GA15745@infradead.org> From: Dan Williams Date: Tue, 7 Jan 2020 06:22:54 -0800 Message-ID: Subject: Re: [PATCH 01/19] dax: remove block device dependencies To: Christoph Hellwig Cc: Vivek Goyal , Dave Chinner , Miklos Szeredi , linux-nvdimm , Linux Kernel Mailing List , "Dr. David Alan Gilbert" , virtio-fs@redhat.com, Stefan Hajnoczi , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 7, 2020 at 4:52 AM Christoph Hellwig wrote: > > On Mon, Dec 16, 2019 at 01:10:14PM -0500, Vivek Goyal wrote: > > > Agree. In retrospect it was my laziness in the dax-device > > > implementation to expect the block-device to be available. > > > > > > It looks like fs_dax_get_by_bdev() is an intercept point where a > > > dax_device could be dynamically created to represent the subset range > > > indicated by the block-device partition. That would open up more > > > cleanup opportunities. > > > > Hi Dan, > > > > After a long time I got time to look at it again. Want to work on this > > cleanup so that I can make progress with virtiofs DAX paches. > > > > I am not sure I understand the requirements fully. I see that right now > > dax_device is created per device and all block partitions refer to it. If > > we want to create one dax_device per partition, then it looks like this > > will be structured more along the lines how block layer handles disk and > > partitions. (One gendisk for disk and block_devices for partitions, > > including partition 0). That probably means state belong to whole device > > will be in common structure say dax_device_common, and per partition state > > will be in dax_device and dax_device can carry a pointer to > > dax_device_common. > > > > I am also not sure what does it mean to partition dax devices. How will > > partitions be exported to user space. > > Dan, last time we talked you agreed that partitioned dax devices are > rather pointless IIRC. Should we just deprecate partitions on DAX > devices and then remove them after a cycle or two? That does seem a better plan than trying to force partition support where it is not needed.