Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9010079rwb; Thu, 24 Nov 2022 07:03:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R+ns95yMRnzQGc/Q1dKf71d05f7OVRMVoDSdHg2j7a8Fwf1tf63IAVjV9QJAr7dWj7pQO X-Received: by 2002:a2e:a5c6:0:b0:277:22c3:afbb with SMTP id n6-20020a2ea5c6000000b0027722c3afbbmr6013949ljp.204.1669302184180; Thu, 24 Nov 2022 07:03:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669302184; cv=none; d=google.com; s=arc-20160816; b=z+pFpQpR9uNHxHNJ+cq6YuTzlg8k+cBl+IA7lfwNd6YSH2/Y0RnFtB2fnTTgJSFmJc mlJpNZdcROaNYs2zmhZLPfIZp/Ajg2fm/mi2NbGFINFt1DUv/vEL7UQ4+/9LHT0+00z2 Rm8a7A2YEGcT1YTNfO5LNrUpyCeL+bulD+dmIKoiEeW9RB0NDu/o/I+lBtfo8CHz5Lv7 U6JGCfzG/Nj48zvJmkRCujxpHj3lZaJZ6Suo02mNTK5GQj7WqrILf1qs0sDUeDovPRey 1m9uIKW7uoycncLauN1FJPkfLQwxdwJT+4UjgrKQrjihXtkBWu53SPgVdUgyzlVNDcH5 63gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=alQ7R5Jh0NErV3HrxzICAC/+0mUOPP9X/aFaPsHC9FA=; b=Eu8wHi9V7779XcyBMdj12fOxhljcSFviYDr4jvI9OPAMCY65evNM+I/5ffhymH8JJc R4KWSCzOYyZwENopNQV0iirsbiSRV4jjEggei+RKTbUUputrYXOu0XkkUacHkl9G7Ea2 cbReScwXt0ctzUZ7FWqUZTtYL6kohTnL03z9XDrApvNJ2Xi3iaWAUCrPN3+sQmiicVmU 23PMhHlXuQKPkNhFQqM2mECqOWZQvs4U03Py+ZaHDh/ISnx+mxca6yxBhJo4mlZMO6i2 mDWmfwHKrMYW6AAwAxQkL/lMgGtuBSTvhwbrKpbeTm35TiJlxXO0PAh/vOfEDKy70XkH h1mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fujitsu.com header.s=170520fj header.b=FLsiwZGf; 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=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr11-20020a1709073f8b00b007adef1fc90fsi1225617ejc.304.2022.11.24.07.02.40; Thu, 24 Nov 2022 07:03:04 -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=@fujitsu.com header.s=170520fj header.b=FLsiwZGf; 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=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbiKXOz1 (ORCPT + 87 others); Thu, 24 Nov 2022 09:55:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiKXOzO (ORCPT ); Thu, 24 Nov 2022 09:55:14 -0500 Received: from mail1.bemta34.messagelabs.com (mail1.bemta34.messagelabs.com [195.245.231.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 500A525E8B; Thu, 24 Nov 2022 06:55:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.com; s=170520fj; t=1669301711; i=@fujitsu.com; bh=alQ7R5Jh0NErV3HrxzICAC/+0mUOPP9X/aFaPsHC9FA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FLsiwZGfCHP45lQpVpgj6eO4NpEeQgX9uPYR97QjHyJ5ijI+t2qWitMp4oPx8cWQ9 D7GNOe11wh9E4pAw5dMsmHAZe8FcbNfU9XQo/Cyn7+Fr6L8onY9A7+2xc5VmfTihua uhDeiNt52ackZGCTBCzl3iHQlpHJIZIkZWDknRUPVmzdCmyM3ykPmSLx+M103Egb9G SM6IBsbOxg5JDvO9RWJnGZhFyQU40Th3w7798NQRN6d2xfrLIQPawKhJDdkDDC0aq1 VknjI7wEnzfkG8QwmPSHJckUsgx7KygMZZngVfOWissO0FlB+0r7TuaSE55e6f6aLN +DcT1/B2a02Kg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLIsWRWlGSWpSXmKPExsViZ8ORpHu+tT7 ZYEMTp8X0qRcYLbYcu8docfkJn8WevSdZLC7vmsNmsevPDnaLlT/+sDqwe5xaJOGxeM9LJo9N qzrZPF5snsno8XmTXABrFGtmXlJ+RQJrxq4b7AXfOCturNzO2sDYwdHFyMUhJLCRUWLq+eeME M4SJok/G95AOXsZJSY8/s7axcjJwSagI3FhwV8gm4NDRKBa4tZSNpAws4CXxNrXG5hBbGEBE4 lNa2aC2SwCqhLTV30Hs3kFXCQ+Xp3BBGJLCChITHn4HiouKHFy5hMWiDkSEgdfvGAGGS8hoCQ xszseorxCYtasNqhWNYmr5zYxT2Dkn4WkexaS7gWMTKsYzYpTi8pSi3QNzfSSijLTM0pyEzNz 9BKrdBP1Ukt1y1OLS3SN9BLLi/VSi4v1iitzk3NS9PJSSzYxAsM8pVhx6w7GG8v+6B1ilORgU hLlvZVTnyzEl5SfUpmRWJwRX1Sak1p8iFGGg0NJgtejHignWJSanlqRlpkDjDmYtAQHj5IIr3 s5UJq3uCAxtzgzHSJ1itGYY23Dgb3MHJP+XNvLLMSSl5+XKiXO+7IJqFQApDSjNA9uECwVXGK UlRLmZWRgYBDiKUgtys0sQZV/xSjOwagkzKvRAjSFJzOvBG7fK6BTmIBOeapTB3JKSSJCSqqB 6Shj+s97PB/L3Vev+1p0PC3pW5py+qmkd7OrL1qVvz0lO6m4brt+7FH3fNbUL6pb79+cwvp1R /qquOeOmy0fu2zZafxbPTUn7UThTa6GK39v6a28cDkmLKvh7Q+vs1s4b957YPvUymD39gQJpS SxB/aHLM+05xu3lgnWLv3j//uUuZufE+/Kbb/9DmUfZvpg63jh0Upd8+cpF93cJfh6ghZKbVA Xkaj0fH74+L5a+8cn9jY27G5PWcq/3+hJ4/k1ifOn2c5xdLoUNCNqv/3VszmO89bcXdCQJLgr rOesSUOFRNPZ2KTlSqZtG3IOLbB/EtsscE02gH1O+oWJ64sV68v/ZelzaKX/MJv2cG5WmxJLc UaioRZzUXEiAPCOJaKAAwAA X-Env-Sender: ruansy.fnst@fujitsu.com X-Msg-Ref: server-16.tower-565.messagelabs.com!1669301710!39516!1 X-Originating-IP: [62.60.8.98] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.101.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 16235 invoked from network); 24 Nov 2022 14:55:11 -0000 Received: from unknown (HELO n03ukasimr03.n03.fujitsu.local) (62.60.8.98) by server-16.tower-565.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 24 Nov 2022 14:55:11 -0000 Received: from n03ukasimr03.n03.fujitsu.local (localhost [127.0.0.1]) by n03ukasimr03.n03.fujitsu.local (Postfix) with ESMTP id C9C411AE; Thu, 24 Nov 2022 14:55:10 +0000 (GMT) Received: from R01UKEXCASM126.r01.fujitsu.local (R01UKEXCASM126 [10.183.43.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by n03ukasimr03.n03.fujitsu.local (Postfix) with ESMTPS id BE7F41AD; Thu, 24 Nov 2022 14:55:10 +0000 (GMT) Received: from localhost.localdomain (10.167.225.141) by R01UKEXCASM126.r01.fujitsu.local (10.183.43.178) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 24 Nov 2022 14:55:07 +0000 From: Shiyang Ruan To: , , , CC: , , Subject: [PATCH 0/2] fsdax,xfs: fix warning messages Date: Thu, 24 Nov 2022 14:54:52 +0000 Message-ID: <1669301694-16-1-git-send-email-ruansy.fnst@fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.225.141] X-ClientProxiedBy: G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) To R01UKEXCASM126.r01.fujitsu.local (10.183.43.178) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 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. 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