Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2978224rwb; Wed, 30 Nov 2022 13:36:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UooXGrI3tHylsE0ibBaNCjHHW2maCfayHO2wX7i+U0zrfzKY/CmwohycBS6I+vaZRWlTZ X-Received: by 2002:a63:ce10:0:b0:478:5e53:4742 with SMTP id y16-20020a63ce10000000b004785e534742mr3696662pgf.471.1669844181409; Wed, 30 Nov 2022 13:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669844181; cv=none; d=google.com; s=arc-20160816; b=nsGaPQf5KJuZoD6l+LonH3nT+o2PlfAbYqF4v/Iug3o3BgvT2ZghmfWLVtQxmzvUnn W/ux+R6am7+qULGhXRda+fMl849DUliR1740NgUlo8X02cW34vAwaChA2jOAqGrtFD6a R3qksHhUpeVT9xgnDIuwi9eKYOUXWICoK2AoTwth2JyALuKMdAyugXFjYGome2T7wwVC R/LyaajMLOrCOQoNLSP1j2fJoR3sKHflGbVAxipKD8kFfm5hwwByfcgBuivs06qmalwT oqagQN/0m3UK59dpKIeNb8i5gK/Z1vTy/ab1F45Sw6cvUJ0nihZCoWWgcz6Fa6BwGA8U cE9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=r/zd3lfLOHa3fp3HBw/CSBE9IaMwDx6f2OF+drLxe3I=; b=0UhUaETnDkE1y83QCXuhW7q7AxObW3PALQghsb3APYuZHfx5vFaSdSaJyoLvHjIl6i TkrNv0yCzCwymIy3xqsszNYfh14zuUjbfbGuMI8J6ZfhntEj8jRjEVX+se/gNXnaMJxy S9Ydzz3jiDMMun/+j655tsXdG7HrQq5oLAvkkKSUrGtVx9x/IgRkA5p6sB4kXD0+FX8e kW+cOww0zAL+8HsfV0eF7yegRZeKKsMVCdIWA12FNQcZX37qLMfgOstBY55oaB5VMUxY vY+L5i8Vnct7oXt3ysBf33mI/il1PeB0jRNbJ0mel2Ro/pw3Yib2DUehPqHV2oL1badk 4YUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=q2mXTk0p; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i191-20020a6387c8000000b00477c26f7854si2382686pge.254.2022.11.30.13.36.10; Wed, 30 Nov 2022 13:36:21 -0800 (PST) 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=@linux-foundation.org header.s=korg header.b=q2mXTk0p; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbiK3V1p (ORCPT + 84 others); Wed, 30 Nov 2022 16:27:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiK3V1f (ORCPT ); Wed, 30 Nov 2022 16:27:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8183B8DBE9; Wed, 30 Nov 2022 13:27:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 36E3EB81B60; Wed, 30 Nov 2022 21:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 810BEC433C1; Wed, 30 Nov 2022 21:27:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1669843646; bh=Me74CDiIx+Q+XRS5mMt1qSL0e6bltCo47J3Coh+n4hM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q2mXTk0p2zy6/1HD7HyVu619wMEov6pcnZ7f8uEgBh097J80RsmrYbNUTgSI9hGXV MejslMnnmwGxr2BT0FwC7rwZt2PnAJF2fotqyOSsNHNb2SvDa38WclPQrHU5rL7zFg TaSDMI8IAkXB1nf7HaKhlJNkUvOy4sUrgJ8gSk/A= Date: Wed, 30 Nov 2022 13:27:25 -0800 From: Andrew Morton To: Dan Williams Cc: Shiyang Ruan , , , , , , Subject: Re: [PATCH 0/2] fsdax,xfs: fix warning messages Message-Id: <20221130132725.cd332f03ad3fb5902a54c919@linux-foundation.org> In-Reply-To: <6386d512ce3fc_c9572944e@dwillia2-mobl3.amr.corp.intel.com.notmuch> References: <1669301694-16-1-git-send-email-ruansy.fnst@fujitsu.com> <6386d512ce3fc_c9572944e@dwillia2-mobl3.amr.corp.intel.com.notmuch> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, 29 Nov 2022 19:59:14 -0800 Dan Williams wrote: > [ add Andrew ] > > Shiyang Ruan wrote: > > Many testcases failed in dax+reflink mode with warning message in dmesg. > > This also effects dax+noreflink mode if we run the test after a > > dax+reflink test. So, the most urgent thing is solving the warning > > messages. > > > > Patch 1 fixes some mistakes and adds handling of CoW cases not > > previously considered (srcmap is HOLE or UNWRITTEN). > > Patch 2 adds the implementation of unshare for fsdax. > > > > With these fixes, most warning messages in dax_associate_entry() are > > gone. But honestly, generic/388 will randomly failed with the warning. > > The case shutdown the xfs when fsstress is running, and do it for many > > times. I think the reason is that dax pages in use are not able to be > > invalidated in time when fs is shutdown. The next time dax page to be > > associated, it still remains the mapping value set last time. I'll keep > > on solving it. > > > > The warning message in dax_writeback_one() can also be fixed because of > > the dax unshare. > > Thank you for digging in on this, I had been pinned down on CXL tasks > and worried that we would need to mark FS_DAX broken for a cycle, so > this is timely. > > My only concern is that these patches look to have significant collisions with > the fsdax page reference counting reworks pending in linux-next. Although, > those are still sitting in mm-unstable: > > http://lore.kernel.org/r/20221108162059.2ee440d5244657c4f16bdca0@linux-foundation.org As far as I know, Dan's "Fix the DAX-gup mistake" series is somewhat stuck. Jan pointed out: https://lore.kernel.org/all/20221109113849.p7pwob533ijgrytu@quack3/T/#u or have Jason's issues since been addressed? > My preference would be to move ahead with both in which case I can help > rebase these fixes on top. In that scenario everything would go through > Andrew. > > However, if we are getting too late in the cycle for that path I think > these dax-fixes take precedence, and one more cycle to let the page > reference count reworks sit is ok. That sounds a decent approach. So we go with this series ("fsdax,xfs: fix warning messages") and aim at 6.3-rc1 with "Fix the DAX-gup mistake"?