Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3940866pxb; Tue, 17 Nov 2020 07:28:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvaLfpBzbw4uiAc9VOempeLFn9bfCt2OAeAOsNooQKmQRaE4KEJj7ZEqUC84ufVGHAb3CP X-Received: by 2002:a50:cf46:: with SMTP id d6mr21852581edk.356.1605626889009; Tue, 17 Nov 2020 07:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605626888; cv=none; d=google.com; s=arc-20160816; b=zNZ0c+Ec2RnZ0HjopAhl+MKZQnC17AaM3ZNghsoC5i+G00EXbdGYwJeD31v6YZubdf qxVsvpxNybFyB+raCSLcIIfjTUEuEWpqNceDbGqd9nfeCV1Rv1naoFX91WhZIl1JBWCV aiYONGg4JdDQNUVYnEPKBxGNEEdkqRZNDMrXarJ4/uuxTz+8k8C1/Qd/E1Gkxuec+qXM PiO1dIoqSggvUgjwygzqOyg22VBT4kxsEX7QBpJFOLMglj+VgF7xua1G+Gae4Yqk2oIy hFH7KWE7hPcD7OAf3tyGIP1fmPaa6SX/dPhpsiruIsMsJQh4JtXGItn1jVCLRAsT4/8X ycEw== 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=n5U3zWqM+ZL59vEcrCsKK3dQNxfJZWM5yIvTYJL+EWI=; b=rbLyDJ41SYJFQ5E5gd/xbkjkg3EjNWENqoz6UBXpf19l1EBgHPLcdprf0Ee4O6A35Q dilF8S9enaADpmDtHCt74ieMxn+UtF1vsQe6zUuB6WiA0KVevNrVzq4iiVA3wba7TVyy OgXGoWiWnNH9Z1oAZEukwboCgQnqMob2yFFcn2Db2EamZy5JlBgYqH4ozh+y59NH6oDK p8HDb1Ir9zujXe7QrKgJ5nyKeJYOhNxKdiI1rVDkWKRqFkXyo1BoE7lfpQ/Op4tk1yaV suSPAYRuBnqpoyZjyS8LzGJHYyoEFP8xTF/0pFparPjPrpDh5nbvm/PnCkoy3GmJShcA 7YhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=N5SZshko; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by16si10928648ejb.339.2020.11.17.07.27.45; Tue, 17 Nov 2020 07:28:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=N5SZshko; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730375AbgKQP0g (ORCPT + 99 others); Tue, 17 Nov 2020 10:26:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729507AbgKQP0g (ORCPT ); Tue, 17 Nov 2020 10:26:36 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88F74C0613CF for ; Tue, 17 Nov 2020 07:26:36 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 194D31C21; Tue, 17 Nov 2020 10:26:36 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 194D31C21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1605626796; bh=n5U3zWqM+ZL59vEcrCsKK3dQNxfJZWM5yIvTYJL+EWI=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=N5SZshkoZVjxu+GC6PePpixs6+uA4uME+9QXVsAds4y6eJ0o236hmcFWmT44Kh93J A7qPlwHCgtcZZUH74zGORe8+T1o2zPFwdkH2l+d1Jmqvol+FgEmgPiAoxSstLyJC2U KxbK4YqMm2GObXkUT+OOsF4pKm3EdPLe/1g0Eri8= Date: Tue, 17 Nov 2020 10:26:36 -0500 To: Jeff Layton Cc: "J. Bruce Fields" , Daire Byrne , Trond Myklebust , linux-cachefs , linux-nfs Subject: Re: [PATCH 2/4] nfsd: pre/post attr is using wrong change attribute Message-ID: <20201117152636.GC4556@fieldses.org> References: <20201117031601.GB10526@fieldses.org> <1605583086-19869-1-git-send-email-bfields@redhat.com> <1605583086-19869-2-git-send-email-bfields@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Nov 17, 2020 at 07:34:49AM -0500, Jeff Layton wrote: > I don't think I described what I was thinking well. Let me try again... > > There should be no need to change the code in iversion.h -- I think we > can do this in a way that's confined to just nfsd/export code. > > What I would suggest is to have nfsd4_change_attribute call the > fetch_iversion op if it exists, instead of checking IS_I_VERSION and > doing the stuff in that block. If fetch_iversion is NULL, then just use > the ctime. > > Then, you just need to make sure that the filesystems' export_ops have > an appropriate fetch_iversion vector. xfs, ext4 and btrfs can just call > inode_query_iversion, and NFS and Ceph can call inode_peek_iversion_raw. > The rest of the filesystems can leave fetch_iversion as NULL (since we > don't want to use it on them). Thanks for your patience, that makes sense, I'll try it. --b.