Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp997481pxb; Fri, 22 Apr 2022 16:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXxg0nBRhlhn/6CLWmJK1WGYWR4sCrEnpd6Pr1NIm9KSQbD/kt45ENiZ9AB4xLp1dDsIsa X-Received: by 2002:a17:90a:aa96:b0:1cb:c57f:9218 with SMTP id l22-20020a17090aaa9600b001cbc57f9218mr18856080pjq.227.1650669552987; Fri, 22 Apr 2022 16:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650669552; cv=none; d=google.com; s=arc-20160816; b=gfEA0QAww+kOXFyxxFrpAuinVaPG9lZLtUtag3DpyGpfhOwjRTmXbDiSAiQnvaX1+h GUnJJc8cCgFL4sOyaD0AOaqYNSXcjA5xIzMDrkOf46v5fJkEaSSvV0my85rp0ej8KKC9 UgHkRx8USX9xNDhYfAn9cXOccx9o+is+gpzf+a9prWVI0kA8IREVF18Rd/jtkWvf2Von zLemvzEyEQMrMIyxasZSVSFWyKGX53xhX4SyI6f/QGuflG2kMg5sZttQpZH3OtjeuDcl c4vKtvKjgZmC4jQF9e0D2qB7f0KzjXpru0OMMw7HCD9yjdcC45SZiuZta2NXP353qNAe 5/Cg== 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=w9AKK/wGlnxig+lE3h4LHV/aZa9ukqQjCgIygmyWAnI=; b=YUXtriFHvHZDoKkE9VHXGTGHG+09EzauHg5aq1Y91lX7tKzKHWysmvNc6fRZzlKzdH F1B+bK/NWHcIWwJSyffDcL3Zxcu9T2bULQlN32TwvCrGysUz5nJr8SV9g2a/pQO4qF6o RtK1EZQNsk57L1iPAaSdSSdfFUYQPyzK4zBkE5BPMtqVq+8aEpurdnam783TVAnYAxWI r1iLB10h9+pOm79U+5V4esz13glsUrx2bg3FYC6dx5CMLjFpQPgYM3Hbd5Q4i2ED5/QQ vJZ5fwQ/CZ7BTFKGnbQ2Cgn3bZkLjV10NMXuJScBlw7XSTdw/6KjvOGwzyFv4lJ+BUGN 92Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=68ZELSGo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n12-20020a170903110c00b00158e8c7e2ddsi12486375plh.21.2022.04.22.16.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:19:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=68ZELSGo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C95391B382A; Fri, 22 Apr 2022 15:33:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbiDVWfe (ORCPT + 99 others); Fri, 22 Apr 2022 18:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233321AbiDVWfN (ORCPT ); Fri, 22 Apr 2022 18:35:13 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 667E12CC18F for ; Fri, 22 Apr 2022 14:27:44 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id j8so13523063pll.11 for ; Fri, 22 Apr 2022 14:27:44 -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=w9AKK/wGlnxig+lE3h4LHV/aZa9ukqQjCgIygmyWAnI=; b=68ZELSGoErna6Kx0I1rr70ZevaMAPMnUYlggojQeGdeNtet7Hum0m7txFWvhbVCPoh Lpfn1c1GUzjoDoqF3atTMDyB/W54WSq09ZqEMstjj/nD57yi3McP45zUESmlBRcMSayd RCzz4ipAytYtGQe71XITH8QJ3AOzILuXAM8yhmiGgJ7WF+oGlf5airqmyAOM2HGknwiH NL8jDL6gpoJPBQW7EeAY6wZ4C88AXehvjWq8bqkos1IivsjngJ9pqrOMVpnTljE1x58T I93xuOolWlJ6WC9weiHMQEfCyYC7FH5wSxSWXUOcug8i2eaQtc0PgYHeEI3sT7IioZIr TevA== 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=w9AKK/wGlnxig+lE3h4LHV/aZa9ukqQjCgIygmyWAnI=; b=l6QYBoIF0gzw5B45+6A/gJui8P3nM6v3QofKlKsM9mUtBDlBnUnKNAFEskTyciP6ac 2e6Amh7wjKKs/4BRvkh2N1Z75UFkLqvJJOcNhHIHtOA7ziEnmL6NOyBhaBq0qyKjGAjU 1hsE2Qfiaeg0PI3RFTdedwdXNu7cb3gWSnwa5m9xRujaj7El+GNvANgkwd/y2jjVMQBc DDFr3VlyVfmr3j5AXgGm9HajLDjheb6kXGuhkIJCRf/RjuzNtGorlyowvvivTl9k9JZl xcRQrGUWI64L6/4YflK838Ukl1jsfc2EeFjtno7xv+TxXsg0pJfwFczFPecJhjuNm0SG +J4w== X-Gm-Message-State: AOAM530qg4pFBDtTxesp1Rp2d6bjXDoh63zUG+Fo3vXiacVOxmO2cL0B e6Auoh+O9YutipnwL+gz9oYwma5hHBJ37E+2CEDEzg== X-Received: by 2002:a17:902:7296:b0:14b:4bc6:e81 with SMTP id d22-20020a170902729600b0014b4bc60e81mr6342011pll.132.1650662863976; Fri, 22 Apr 2022 14:27:43 -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> In-Reply-To: <20220421074653.GT1544202@dread.disaster.area> From: Dan Williams Date: Fri, 22 Apr 2022 14:27:32 -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,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 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.