Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15721257rwb; Mon, 28 Nov 2022 15:24:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ZQHxWXDpJMNcd+WDEPdGiOa2/ueUJabocRqVTWn+00HCCrjSjl0oYiCiTWZuenDQZEzj1 X-Received: by 2002:a63:5fce:0:b0:477:d77d:b937 with SMTP id t197-20020a635fce000000b00477d77db937mr17958006pgb.124.1669677887583; Mon, 28 Nov 2022 15:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669677887; cv=none; d=google.com; s=arc-20160816; b=BR7JEklk4ppGoT/3/t5RLf7IsScDDeNwSkrLMkY0uRvj17gpjDmy1+fBhhDvv2kfS8 iAwKNacyi8XTVQi8G1XSVTKBJ4mWovzWOClZoZ4T+Ry/3tCnQsavdau5mJ8fi1PCQREx 30cuTKo8nOU902h1WRqjFe8qsI4tgIk9T7OvCYyqnRVyIydM8d9Ite+6HVW3dSJoU3HY Mzl4esd4PiXkTpySNEsAuYJf0sszCtjt1dqnscQhON/gUJWxQgDxd3Br0f5EqC6yCtie 2CiN9IKplIRPWq/Xy0NRRARXBRisox1zrMyVlmYoOdVtxYPm7HxB1BBnnAQ2U95j3E9r EDtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/HUdHX8Fta2SV7MJ+aTBkZlItq4M63i+1JCn07l+ZgQ=; b=u3uIasq4hC+eDU4wDnxmI1a6Pi0p1ufSDK7QVVBH7IRmtpHzI8Ur8aN7Zyq+1inU3g Riv2yMoY0Xib4KVsoGj42/rDatsW1k8wP7ggUnQZssyolnx/SHbZ+kMcxkBpJQA4TguF CByXyIPlo5oCPUk3wbvKwrbL0vP4gOFJQgTuIQlAiDtiVMGSuJn5btwKvOz9Fp74PhyE gunvCWsT8XYctTGPoxAbD9yZ/0qAwCUu0ncsJydNeHNMc22jR1eeaMFYrLuiT9YRhiYV djRrYL5QLu27njy8YQ4Jy7uBo0QX1bX+Z8wZ7a+g55z5/qtEGCIObSoljkt/YAY4VUK8 x9RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bIzVbNaL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638b41000000b004781187bdd0si4756080pge.397.2022.11.28.15.24.21; Mon, 28 Nov 2022 15:24:47 -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=@kernel.org header.s=k20201202 header.b=bIzVbNaL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234394AbiK1XIW (ORCPT + 84 others); Mon, 28 Nov 2022 18:08:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbiK1XIU (ORCPT ); Mon, 28 Nov 2022 18:08:20 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ACB12B637; Mon, 28 Nov 2022 15:08:19 -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 sin.source.kernel.org (Postfix) with ESMTPS id E3D48CE109B; Mon, 28 Nov 2022 23:08:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16DA4C433D6; Mon, 28 Nov 2022 23:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669676896; bh=xmDWkkpCiCrDtqwlAEG/iOC4CyDHvYHC5ggXKZgViCM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bIzVbNaLrMmkKLiNRUOdJTh/0UY4Krs/3gxXj/U/B1iuRbecq5DfsXfE4hSCw/g/h m+PuEcldMLu337SC1BMCgqhpTLMm2z/tYMQ/3egiYlnbeUQ6HXtzBeECooF9j0s8jP bBIVvuzxLK0g53g67vaE9ihZOpTcuUmB3Qbq0h1YSylIMr6V0Vak+NbgiIa4or44nR Budu5DByuiLkmGTG4sxeW/l38uXgMRFDAyMoio/vz4xgx5XqSUTQkS7awGet92y4lp pgel+vNEERy2EjPfJsUKVhsq1BrqICiD8afXQTCzzXQE9J6EhNnyR6oZIlMdsKXWjw vuFqeQGEDXOBw== Date: Mon, 28 Nov 2022 15:08:15 -0800 From: "Darrick J. Wong" To: Shiyang Ruan Cc: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, david@fromorbit.com, dan.j.williams@intel.com Subject: Re: [PATCH 0/2] fsdax,xfs: fix warning messages Message-ID: References: <1669301694-16-1-git-send-email-ruansy.fnst@fujitsu.com> <113e8b0d-7349-94ac-c017-3624c34fe73b@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <113e8b0d-7349-94ac-c017-3624c34fe73b@fujitsu.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, Nov 28, 2022 at 10:16:23AM +0800, Shiyang Ruan wrote: > > > 在 2022/11/28 2:38, Darrick J. Wong 写道: > > On Thu, Nov 24, 2022 at 02:54:52PM +0000, 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. > > > > This cuts down the amount of test failures quite a bit, but I think > > you're still missing a piece or two -- namely the part that refuses to > > enable S_DAX mode on a reflinked file when the inode is being loaded > > from disk. However, thank you for fixing dax.c, because that was the > > part I couldn't figure out at all. :) > > I didn't include it[1] in this patchset... > > [1] https://lore.kernel.org/linux-xfs/1663234002-17-1-git-send-email-ruansy.fnst@fujitsu.com/ Oh, ok. I'll pull that one in. All the remaining test failures seem to be related to inode flag states or tests that trip over the lack of delalloc on dax+reflink files. --D > > -- > Thanks, > Ruan. > > > > > --D > > > > > > > > Shiyang Ruan (2): > > > fsdax,xfs: fix warning messages at dax_[dis]associate_entry() > > > fsdax,xfs: port unshare to fsdax > > > > > > fs/dax.c | 166 ++++++++++++++++++++++++++++++------------- > > > fs/xfs/xfs_iomap.c | 6 +- > > > fs/xfs/xfs_reflink.c | 8 ++- > > > include/linux/dax.h | 2 + > > > 4 files changed, 129 insertions(+), 53 deletions(-) > > > > > > -- > > > 2.38.1 > > >