Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2021530pxb; Sun, 24 Apr 2022 02:11:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSqm6c0OtfVjbJEZEWhnYEGSjCkordOrUMLcETFIArlB6ucYBWvcumcJMmi5r8FKzIg1MA X-Received: by 2002:a17:907:c29:b0:6f3:8d26:c330 with SMTP id ga41-20020a1709070c2900b006f38d26c330mr1513676ejc.215.1650791487230; Sun, 24 Apr 2022 02:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650791487; cv=none; d=google.com; s=arc-20160816; b=PcSqxnv1/XSo0reciL6PJxWAfS0P2ZJUyxrhWKPxDFR36sf/2DCnCtbJimPqaGcXG2 KPJ+YpLP7LLfC80HLEN4DBOB48qByT7+XGBEwxVdbDMjtJol5wLul1gQqtinr9lbcNFk BO5HtPQisMtVv/dHZN/5BN2pfKT4RZRNp0nMC8aiYDwiVwSU8gVHxcwd4Hd/ZK3HT+IC Z3k9Qv2bdighLHXAPABnRrgQwFNI0ZNQQMQRLAbVsq0hZ/I1hDfiuR/8TAMSvFuPT+aL AAggObgkzzwd+5ZESg0R4wG+yQ2yw+dK0mB5GdmZeTJ48OrFSL6mVvOiPUk+nDEvC0my sr7Q== 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=xxYgAVRvbeskBRCc62b6dd1b3P0m/iQAjdEflJjZwEw=; b=Pobesg0pSEkwnJRkfpJm0DkRlFf7/Pld4Y8Imu/mYsA2OFgnHv+kdXgQ2IHrffAtPs sAdBvmQV+dU8i6m8qBZMJVZj08RHNzddypC2YFpvwN3MmAgiYZpZbT8TlA2ATCfLOM04 vUe4iKTVq6PtXv5ROpZceHpXpkSIlE7XK3Wpz4ZiWbAJeCdOGV4har4ILRervMexlaIj W8ImX36mTajT7EYvx6y2E6R+6iywf9EPI6NNx0il1tu4a8cw4TKuhl6kIqODJy5ty5Xo pFf9lJXfoR5Tad9K3yH90rqgVXB0bl54K8l+2Q/fowapSFSSLLnmdgpvIxPxtsW8YAZv te8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=cIGzVuva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a056402430800b0041d12ac471bsi11222670edc.6.2022.04.24.02.11.03; Sun, 24 Apr 2022 02:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=cIGzVuva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236608AbiDWRf7 (ORCPT + 99 others); Sat, 23 Apr 2022 13:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236609AbiDWRf6 (ORCPT ); Sat, 23 Apr 2022 13:35:58 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3399E1A61EF for ; Sat, 23 Apr 2022 10:33:00 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id t13so9902855pgn.8 for ; Sat, 23 Apr 2022 10:33:00 -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=xxYgAVRvbeskBRCc62b6dd1b3P0m/iQAjdEflJjZwEw=; b=cIGzVuvaHPW/VLTUuGNP05j8jEVx31lmj/3qbzCRsPPrbTPeSt32R9NgmplRr+LV2v TPG/LcGufNFw0M7teCiF+6fVAYn4/IZUkzhvU151c+DtN5zNP6ijWWFEX0r7a0X7hpZ6 xO3b46N9BlD5HOH/6KjSBgqpCWBJDeBsMQZmm79J4gye6fRcxGTlCl4dKaFf6y1mAURp E5R7bt7AOI4nxW4Mui2PMh/dI9vZ6rNafeuVBGnANyufcFvtdgr6zL9cseyBu2DWlLef OiFipnPqxqKTZqc5cVuZn5+/7HX/WRUNoR6ULhHbqgV/g2kNVB4EiarR81JxPDgXZFsx xVNQ== 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=xxYgAVRvbeskBRCc62b6dd1b3P0m/iQAjdEflJjZwEw=; b=Mn1m45HYHnTr6FssVjGEshMujpphGXyGgTmuZNxpxe8yY6wZ4rE6vFIsR8l9J+EXZN wlVo4fTY/xkC0rw7hv/daOXnd9cH1kwoKI2gdNkXRxQUJ9yCz5aTB+RvMoIuGISOTe4Q DA8eBl2PMxwdJMq4/akd4WZjLY5Pe932X/yzdQUGmeKYYJyZgX3lkJnwk2pqKDKYIdE8 7Ehm8OQGtZzWsdgVNOR8ux1naTl6YIpOAbAvhzCg0deuBUp1h2xmFdDfghLOPeIicB+k cCcbaSnC2UPqTvEpCiPWOae0wFqQKCasuAiEti1wZA4ruYeX2XGgC2XXEU/NWPd24NIf WFhQ== X-Gm-Message-State: AOAM531q/EBwBcwQg4fWWWEUm7I+XTG7hr3vfYJ1+P1NCDKYaCZqbquY dgStzHFKGkLCPEEQaZJr4ORA0iuI/ppEXWdca5YclA== X-Received: by 2002:a05:6a02:283:b0:342:703e:1434 with SMTP id bk3-20020a056a02028300b00342703e1434mr8647836pgb.74.1650735179515; Sat, 23 Apr 2022 10:32:59 -0700 (PDT) MIME-Version: 1.0 References: <20220419045045.1664996-1-ruansy.fnst@fujitsu.com> <20220421012045.GR1544202@dread.disaster.area> <86cb0ada-208c-02de-dbc9-53c6014892c3@fujitsu.com> <20220421043502.GS1544202@dread.disaster.area> <20220421074653.GT1544202@dread.disaster.area> <20220423000121.GH1544202@dread.disaster.area> In-Reply-To: <20220423000121.GH1544202@dread.disaster.area> From: Dan Williams Date: Sat, 23 Apr 2022 10:32:48 -0700 Message-ID: Subject: Re: [PATCH v13 0/7] fsdax: introduce fs query to support reflink To: Dave Chinner Cc: Christoph Hellwig , Shiyang Ruan , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , "Darrick J. Wong" , Jane Chu , Andrew Morton , Naoya Horiguchi Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 5:02 PM Dave Chinner wrote: > > On Fri, Apr 22, 2022 at 02:27:32PM -0700, Dan Williams wrote: > > On Thu, Apr 21, 2022 at 12:47 AM Dave Chinner wrote: > > > > > > On Wed, Apr 20, 2022 at 10:54:59PM -0700, Christoph Hellwig wrote: > > > > On Thu, Apr 21, 2022 at 02:35:02PM +1000, Dave Chinner wrote: > > > > > Sure, I'm not a maintainer and just the stand-in patch shepherd for > > > > > a single release. However, being unable to cleanly merge code we > > > > > need integrated into our local subsystem tree for integration > > > > > testing because a patch dependency with another subsystem won't gain > > > > > a stable commit ID until the next merge window is .... distinctly > > > > > suboptimal. > > > > > > > > Yes. Which is why we've taken a lot of mm patchs through other trees, > > > > sometimes specilly crafted for that. So I guess in this case we'll > > > > just need to take non-trivial dependencies into the XFS tree, and just > > > > deal with small merge conflicts for the trivial ones. > > > > > > OK. As Naoyo has pointed out, the first dependency/conflict Ruan has > > > listed looks trivial to resolve. > > > > > > The second dependency, OTOH, is on a new function added in the patch > > > pointed to. That said, at first glance it looks to be independent of > > > the first two patches in that series so I might just be able to pull > > > that one patch in and have that leave us with a working > > > fsdax+reflink tree. > > > > > > Regardless, I'll wait to see how much work the updated XFS/DAX > > > reflink enablement patchset still requires when Ruan posts it before > > > deciding what to do here. If it isn't going to be a merge > > > candidate, what to do with this patchset is moot because there's > > > little to test without reflink enabled... > > > > I do have a use case for this work absent the reflink work. Recall we > > had a conversation about how to communicate "dax-device has been > > ripped away from the fs" events and we ended up on the idea of reusing > > ->notify_failure(), but with the device's entire logical address range > > as the notification span. That will let me unwind and delete the > > PTE_DEVMAP infrastructure for taking extra device references to hold > > off device-removal. Instead ->notify_failure() arranges for all active > > DAX mappings to be invalidated and allow the removal to proceed > > especially since physical removal does not care about software pins. > > Sure. My point is that if the reflink enablement isn't ready to go, > then from an XFS POV none of this matters in this cycle and we can > just leave the dependencies to commit via Andrew's tree. Hence by > the time we get to the reflink enablement all the prior dependencies > will have been merged and have stable commit IDs, and we can just > stage this series and the reflink enablement as we normally would in > the next cycle. > > However, if we don't get the XFS reflink dax enablement sorted out > in the next week or two, then we don't need this patchset in this > cycle. Hence if you still need this patchset for other code you need > to merge in this cycle, then you're the poor schmuck that has to run > the mm-tree conflict guantlet to get a stable commit ID for the > dependent patches in this cycle, not me.... Yup. Let's give it another week or so to see if the reflink rebase materializes and go from there.