Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp478223rdb; Tue, 31 Oct 2023 12:43:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG597W25pSPZFf3wT8aQIfDF++rx5f0vdQz3FF8DMsLoqXE4IdQQFsZF8WQZ9jUca6RJjcs X-Received: by 2002:a05:6a20:4425:b0:179:f79e:8615 with SMTP id ce37-20020a056a20442500b00179f79e8615mr19055178pzb.52.1698781402026; Tue, 31 Oct 2023 12:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698781402; cv=none; d=google.com; s=arc-20160816; b=E9xuB9mwGh9yvCUopnB75GCdvDpPqfefHJ/ca1/nnLEDa7ToxCZxXXOTWSQ1pIh7TJ Y1ZFTKvbtqtSaE9eKYiDZ0pqhvjAlTmJDb8RQpDYSmslT9ciA2TzByhTTC2OORiWG++U sCH4tur8bXYuEUBZLHNOv24R61WXxvUxplSkleoklCkFVFvAr73RBMJ7XACu6JCFnAwv FYhyOFJ0tJnvGj8Ne0w4aEV6hl231GpEHOhkO4B9H01xSWHwaklV45ldUev8ubTodrYK TNqbogR6uWYs05bm5jw7WmyKSsvLJIkaO+qX1+lLMg+wxmKmKbRkbFujFPyHneWyLbyv LEDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:subject:cc:to:from:date :message-id:content-transfer-encoding:mime-version; bh=V2+m98TjCjNJvUhtdVk5jnySpXcmi9OaDapxiYjOhLs=; fh=lI8N5yc2tGAMFnqalg14ZOtpwGP9aPlj5vv+g4MpPfc=; b=hXcPa17R93rTEjyq162d+++fd7pEcFdwCsI9+ZsU1TVA8iqMexBai1iIcIi/Va6YKc pRsSOcxislF9+nzpf7kR1Z3gELiSOCNicRViSqSSEaD03Ufmn6mIjOVAyo1Mw//1JlqY 0K+OYDoGo1ecbYqgl2+S8izgWN2hXwGvTxr3BOjITrfjiQsapsExyLqPHpt9IZTYAb7C rr/xg2A5kBZM1DMViiw7Y6B9GpeX4qMiVI5uF7zugyMri8n/nN9kS9GwRXTbsMIn3yWm f6S+cuByJdAB90tl0pVjDBeNc1eBTEorZNQ/Qnk/T9Jb1pQOcLxA6m8mOYjK8IddbJiY /Kbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=stoffel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id i126-20020a639d84000000b00570979732e4si1408992pgd.392.2023.10.31.12.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 12:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=stoffel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5DC55809F3B7; Tue, 31 Oct 2023 12:43:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234566AbjJaTnL (ORCPT + 99 others); Tue, 31 Oct 2023 15:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjJaTnK (ORCPT ); Tue, 31 Oct 2023 15:43:10 -0400 Received: from mail.stoffel.org (mail.stoffel.org [172.104.24.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B54483; Tue, 31 Oct 2023 12:43:07 -0700 (PDT) Received: from quad.stoffel.org (097-095-183-072.res.spectrum.com [97.95.183.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.stoffel.org (Postfix) with ESMTPSA id 5EB591E12B; Tue, 31 Oct 2023 15:43:05 -0400 (EDT) Received: by quad.stoffel.org (Postfix, from userid 1000) id 80C85A8B01; Tue, 31 Oct 2023 15:43:04 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <25921.22728.501691.76305@quad.stoffel.home> Date: Tue, 31 Oct 2023 15:43:04 -0400 From: "John Stoffel" To: Jeff Layton Cc: Dave Chinner , Linus Torvalds , Amir Goldstein , Kent Overstreet , Christian Brauner , Alexander Viro , John Stultz , Thomas Gleixner , Stephen Boyd , Chandan Babu R , "Darrick J. Wong" , Theodore Ts'o , Andreas Dilger , Chris Mason , Josef Bacik , David Sterba , Hugh Dickins , Andrew Morton , Jan Kara , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH RFC 2/9] timekeeping: new interfaces for multigrain timestamp handing In-Reply-To: References: <2ef9ac6180e47bc9cc8edef20648a000367c4ed2.camel@kernel.org> <6df5ea54463526a3d898ed2bd8a005166caa9381.camel@kernel.org> X-Mailer: VM 8.2.0b under 27.1 (x86_64-pc-linux-gnu) X-Spam-Status: No, score=-3.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 12:43:19 -0700 (PDT) >>>>> "Jeff" == Jeff Layton writes: > On Tue, 2023-10-31 at 12:42 +1100, Dave Chinner wrote: >> On Mon, Oct 30, 2023 at 01:11:56PM -1000, Linus Torvalds wrote: >> > On Mon, 30 Oct 2023 at 12:37, Dave Chinner wrote: >> > > >> > > If XFS can ignore relatime or lazytime persistent updates for given >> > > situations, then *we don't need to make periodic on-disk updates of >> > > atime*. This makes the whole problem of "persistent atime update bumps >> > > i_version" go away because then we *aren't making persistent atime >> > > updates* except when some other persistent modification that bumps >> > > [cm]time occurs. >> > >> > Well, I think this should be split into two independent questions: >> > >> > (a) are relatime or lazytime atime updates persistent if nothing else changes? >> >> They only become persistent after 24 hours or, in the case of >> relatime, immediately persistent if mtime < atime (i.e. read after a >> modification). Those are the only times that the VFS triggers >> persistent writeback of atime, and it's the latter case (mtime < >> atime) that is the specific trigger that exposed the problem with >> atime bumping i_version in the first place. >> >> > (b) do atime updates _ever_ update i_version *regardless* of relatime >> > or lazytime? >> > >> > and honestly, I think the best answer to (b) would be that "no, >> > i_version should simply not change for atime updates". And I think >> > that answer is what it is because no user of i_version seems to want >> > it. >> >> As I keep repeating: Repeatedly stating that "atime should not bump >> i_version" does not address the questions I'm asking *at all*. >> >> > Now, the reason it's a single question for you is that apparently for >> > XFS, the only thing that matters is "inode was written to disk" and >> > that "di_changecount" value is thus related to the persistence of >> > atime updates, but splitting di_changecount out to be a separate thing >> > from i_version seems to be on the table, so I think those two things >> > really could be independent issues. >> >> Wrong way around - we'd have to split i_version out from >> di_changecount. It's i_version that has changed semantics, not >> di_changecount, and di_changecount behaviour must remain unchanged. >> > I have to take issue with your characterization of this. The > requirements for NFS's change counter have not changed. Clearly there > was a breakdown in communications when it was first implemented in Linux > that caused atime updates to get counted in the i_version value, but > that was never intentional and never by design. This has been bugging me, but all the references to NFS really mean NFSv4.1 or newer, correct? I can't see how any of this affects NFSv3 at all, and that's probably the still dominant form of NFS, right? John