Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5606411rwb; Wed, 7 Sep 2022 05:34:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4gJEA73Q1An8xGnp6nfU2B4VOOILySFKNvcQpbcbayQNMCLVo6Ec9RtlDwMG+Xcb/hrrkc X-Received: by 2002:a17:907:9706:b0:741:64ca:ae10 with SMTP id jg6-20020a170907970600b0074164caae10mr2176980ejc.364.1662554046016; Wed, 07 Sep 2022 05:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662554046; cv=none; d=google.com; s=arc-20160816; b=Rb01Ml/cAdQ4M99JIvTHMqry9drHa+264eAllBooF+OtD3rKV+JH7lR6TRIJGdpnJW WlE2BzVONNSNs7iU66ya85XyLoHhhiE52ylhZ60iy/WLKEIXFpatONBiSiZObctsOScu BC1Bep0/rix5CZSGL7yH7ngjNXWrvpj9WiYyVVRd4O2EJd6p+DiAqhfYqS5ete7m2e6J SycebFQgOGgvqqBKAMpxtZngQQliHEB6qH7o7Sw3pec5qbxufW23sTfGa3GL78nOeP+2 okryPCJvWPfF6cN0V3ObE3aqZR1ZrfGlMh/XjKuFMhj6QlRTf1Na5By08Qu8l+3yycIE HoaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=jgQ3ypqmMqdg5Rs3VAqVsTbP8IhjO6urX+brsZDA8TA=; b=duyNNElgGwK8VzqQ1qhbYgj/YC9plii0KnuSAK+rvPIwLm8ihICsusV7c5eu4hGzSb BqsFiA4Oeae601jyT3iT9jQTrIIqSDUpg3McZeSQ3TYHHSGGu9Pj8p8wygdu2PpJHJ2q KhIwz6yclglh/w8bd3gPKvkJTtTMtaphaML52S9J3h5uLnMQh67iJ8BsiIe3/hSzRk97 UHODJgXpDoHGPy+5d1LpNl6FYhIpAl0hyZvdU6TMNVa7gTH+G+aYgLaJvIgjwFWcwENp nf/49mOqOmZWZHCT3NMjTAaqQIScTci3rWtIqnAHYNIjBKqHzNUJK4BQe2lLgngNiYIb Tinw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=rxJdxdTk; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb9-20020a170907160900b0073bd9e4e634si3570159ejc.730.2022.09.07.05.33.35; Wed, 07 Sep 2022 05:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@fieldses.org header.s=default header.b=rxJdxdTk; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbiIGMUj (ORCPT + 99 others); Wed, 7 Sep 2022 08:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiIGMUh (ORCPT ); Wed, 7 Sep 2022 08:20:37 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97CCFA99DE; Wed, 7 Sep 2022 05:20:35 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 8364D64ED; Wed, 7 Sep 2022 08:20:33 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 8364D64ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1662553233; bh=jgQ3ypqmMqdg5Rs3VAqVsTbP8IhjO6urX+brsZDA8TA=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=rxJdxdTkhBfat40mX4wPdgYVSbyda68gU+CGzEzaQoK8SmVOYcVC/yVojO430oi5P JKdqLsThDyKjKS9VaIwQzLYqEfVOlScXn8Liu3a1kSRyN6jYrJsHDS3L6FWdzu86Wa whb/IMUrDI/XVix/slW1wthwSLfIMXiq1fdkkhOg= Date: Wed, 7 Sep 2022 08:20:33 -0400 To: NeilBrown Cc: Jeff Layton , tytso@mit.edu, adilger.kernel@dilger.ca, djwong@kernel.org, david@fromorbit.com, trondmy@hammerspace.com, viro@zeniv.linux.org.uk, zohar@linux.ibm.com, xiubli@redhat.com, chuck.lever@oracle.com, lczerner@redhat.com, jack@suse.cz, brauner@kernel.org, fweimer@redhat.com, linux-man@vger.kernel.org, linux-api@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [man-pages RFC PATCH v4] statx, inode: document the new STATX_INO_VERSION field Message-ID: <20220907122033.GA17729@fieldses.org> References: <20220907111606.18831-1-jlayton@kernel.org> <166255065346.30452.6121947305075322036@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166255065346.30452.6121947305075322036@noble.neil.brown.name> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org On Wed, Sep 07, 2022 at 09:37:33PM +1000, NeilBrown wrote: > On Wed, 07 Sep 2022, Jeff Layton wrote: > > +The change to \fIstatx.stx_ino_version\fP is not atomic with respect to the > > +other changes in the inode. On a write, for instance, the i_version it usually > > +incremented before the data is copied into the pagecache. Therefore it is > > +possible to see a new i_version value while a read still shows the old data. > > Doesn't that make the value useless? Surely the change number must > change no sooner than the change itself is visible, otherwise stale data > could be cached indefinitely. For the purposes of NFS close-to-open, I guess all we need is for the change attribute increment to happen sometime between the open and the close. But, yes, it'd seem a lot more useful if it was guaranteed to happen after. (Or before and after both--extraneous increments aren't a big problem here.) --b. > > If currently implementations behave this way, surely they are broken. > > NeilBrown