Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3077490rwb; Wed, 30 Nov 2022 15:10:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gmFXO81+tisYVFe5GWXrWZDpW9BswVENtXzBXgZjPyKNsIwzbGtgtnwVLt+cbSnz39n7p X-Received: by 2002:a17:903:d1:b0:186:7070:8ab4 with SMTP id x17-20020a17090300d100b0018670708ab4mr48231510plc.23.1669849856588; Wed, 30 Nov 2022 15:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669849856; cv=none; d=google.com; s=arc-20160816; b=FKwMmO24PptiJBoLAAYjDYnmOzEHZhjqs2+FlnkixE3DrRt45ugYQHOPQjrtbNGNPj r+/2OrpjbecP06jbcxyGkExToXLGsMP6TfXj9z4UJDE5rCoIB9/3DhpXBnI51fYlU6wN qacA2dm/NZ7cILIPp47xwKIygMi6zHjj+Fo2bUvO18g9QM3Cfz7sCmF1xrpqdfJKrH9t vKGjL7e7Fq9194V1XKhzqKJ7OFskMc7fvfzFWOrrc7ca5AomI2P1slNQLOcyng/fEy6E nOll5SzUgcEGfZuqzXemsS2Z/LluCuWqW5Kiol8GMTcay96nARlwaAJv1Caoptmt84oU HP2A== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HkQkn4mPSljylmlHsxGeh6y/mbTIbWsrzkXPeynKAvM=; b=J+sYiB77sEqCp4Qi9N9RpiWGfhUK2Lo8FOQEy/Q6wThav0/ZlhoEPRhB9kjLKrH2lK s72q1Q2ByXdJB9zxJw1Cqnu/eWfGAXCdVvA2hqs5h4mBsP5fy6reb3p5IUAURC9WuPEF 1VYxJOgv5LhHQHM9Y0kmjTTMfi7Xt528VIprCZ5SLNw/VqaRz1pT7giSfkpA0ZTWbgU8 95PWLBynVByd1ZJvYM0IuMAvJCm/yXZP5kSlptFFS8xC0hTXCj3kdICfhimbOGRJnnDa 9icwfiDUX6wZnTfkG0T8doVo1omEC+Q9mP8y1NLtFK3e2iIQS4vD4VgbsLC063CeofmV vz3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k+CM5yo0; 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 c21-20020aa78e15000000b0055fa098c388si2700392pfr.259.2022.11.30.15.10.46; Wed, 30 Nov 2022 15:10:56 -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=k+CM5yo0; 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 S229683AbiK3XIo (ORCPT + 83 others); Wed, 30 Nov 2022 18:08:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbiK3XIm (ORCPT ); Wed, 30 Nov 2022 18:08:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8C8175B0; Wed, 30 Nov 2022 15:08:41 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1B59F61E4E; Wed, 30 Nov 2022 23:08:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7403DC433C1; Wed, 30 Nov 2022 23:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669849720; bh=gIsKtLlwreqCB7ezRWhogZnbxTjnJ7Cq3evA1aLIWG4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k+CM5yo0TIxyPSTLLbKcC6YPQxWwBNlIU8EJ8+4k0n07P3hJmA9DvaqlLHhN0TECG I/pFc8ryB5vfagkTlAkts3qa+Ev9mJi/Vs5g31VFbBlRdvaBFdl3c6PMnAeXZFqA2h nPiAInI+p6ftAf99zvoYpGS2eBWe0GQybOYgcdyH9mJooQL+k+6H7NxifF3SaB5YCo N2IfgXHGXrMKsBl4bQ7ZESqTfXhObAo3i8HgBcijX9ap/UUH0JOwUDaPhWhMit8Lor 2lfDWtkdidpRUIQZ5N/bizTfkxLkHkNyMCG4+m8VmRM7umz2EayoNbt4n3KfPxKF5n boobxJUKbGNQA== Date: Wed, 30 Nov 2022 15:08:39 -0800 From: "Darrick J. Wong" To: Dan Williams Cc: Andrew Morton , Shiyang Ruan , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, david@fromorbit.com Subject: Re: [PATCH 0/2] fsdax,xfs: fix warning messages Message-ID: References: <1669301694-16-1-git-send-email-ruansy.fnst@fujitsu.com> <6386d512ce3fc_c9572944e@dwillia2-mobl3.amr.corp.intel.com.notmuch> <20221130132725.cd332f03ad3fb5902a54c919@linux-foundation.org> <6387cfcbea21f_3cbe0294b9@dwillia2-xfh.jf.intel.com.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6387cfcbea21f_3cbe0294b9@dwillia2-xfh.jf.intel.com.notmuch> 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 Wed, Nov 30, 2022 at 01:48:59PM -0800, Dan Williams wrote: > Andrew Morton wrote: > > 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? > > No, they have not. I do think the current series is a step forward, but > given the urgency remains low for the time being (CXL hotplug use case > further out, no known collisions with ongoing folio work, and no > MEMORY_DEVICE_PRIVATE users looking to build any conversions on top for > 6.2) I am ok to circle back for 6.3 for that follow on work to be > integrated. > > > > 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"? > > > > Yeah, that's the path of least hassle. Sounds good. I still want to see patch 1 of this series broken up into smaller pieces though. Once the series goes through review, do you want me to push the fixes to Linus, seeing as xfs is the only user of this functionality? --D