Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp115640pxu; Tue, 1 Dec 2020 07:22:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTEwh9lMMOCdKCW0xWbXF3TWa0JtHARFK8vZ9pn4B9xtJ9MAGtFwx5vsTpXIZi+RW0aOIm X-Received: by 2002:a05:6402:144f:: with SMTP id d15mr3557815edx.300.1606836138850; Tue, 01 Dec 2020 07:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606836138; cv=none; d=google.com; s=arc-20160816; b=uYTJp3lVP4T4b4DmOhnhHrPe5BnazRNtVkh/bOHMJE832Mn/QLr+zNzSMd+btYAmQ8 aSwmjr3PnwN0Sr3pRizK/t8pK5KXta8045ASdD9Agj1Si63d9/GINZHEtqhBoJdWamFB NTzT6x7hS6QInGFR8eRYoIViHV+eyv+141KdUqLFy+m7JA/uKc44MLCo0wdhG9eRyZUW lFr5bsVqu9gXTKv3ZI8U1oBehLt5t4AegpSIZRCYopsJKidbgXkQk5cz3BJz7bSSjCZN hbarL4zCm/dHUT8lg2esKLf+BDv2PyZs54TSgl8uA2ubkb3m2Ws0M4ZL9CO+TMfZUXLZ 0+0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=bnPcyCic6y35tCpzo23VDYN8wcIBw+YH09i0p3cbdYs=; b=kMRjEh7PJDmJTAo0KyvG/aGqq+/GmsvFcxpsPqtRZbjPWsmay9y6EF56VPKrTXyMbH ft7ukglLOw1ppOJu5ZuX/Bn2p3XqVAeBIPEnwAgGDR3zPtzMiCxrjxMOL3YZMs8PEAJ7 dPzBTy4tksitXVmVD+WZFEdGxNW2ufIdt83Ag+A3l8Jvm8CoQQ5oI4/q765JBIKmT5KJ 5bF5wZXlX5MCc/mJiv5v36+9de+zdX+8Mf13DidtCejNOT7oPh/1oXKMkEBxlhhVNamo LKcXAMo0/VrPpUy/vTE8FA8fN/s+w9digWPWhGiIT6QBl8DfE+/ou7LW/eVZNIrXuNqs DKfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=xIIxpy7o; 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 dp20si95061ejc.620.2020.12.01.07.21.46; Tue, 01 Dec 2020 07:22:18 -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=xIIxpy7o; 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 S2389984AbgLAPU3 (ORCPT + 99 others); Tue, 1 Dec 2020 10:20:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389163AbgLAPU3 (ORCPT ); Tue, 1 Dec 2020 10:20:29 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2153DC0613CF for ; Tue, 1 Dec 2020 07:19:49 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id E6D7E6F4C; Tue, 1 Dec 2020 10:19:47 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org E6D7E6F4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1606835987; bh=bnPcyCic6y35tCpzo23VDYN8wcIBw+YH09i0p3cbdYs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xIIxpy7oRJve/4YNzqLMHLz0vcQktS+2Ge4Vl/sZhPNAHVh+BOGuQZrJi4MNqY1/y BWU1Rpx/WMPIAYZJkx8pMWmkaztSVDnOdR2gT4YZW/e70Pt57b6Ch19PSVNCOszr+A eadpO6UPSKtBU0kn+WbuIb0uXDCwVGbJjmVeCI4Y= Date: Tue, 1 Dec 2020 10:19:47 -0500 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "linux-nfs@vger.kernel.org" , "bfields@redhat.com" , "chuck.lever@oracle.com" Subject: Re: [PATCH 1/6] nfsd: add a new EXPORT_OP_NOWCC flag to struct export_operations Message-ID: <20201201151947.GA15368@fieldses.org> References: <20201130212455.254469-1-trondmy@kernel.org> <20201130212455.254469-2-trondmy@kernel.org> <20201130225842.GA22446@fieldses.org> <1b525278a9a7541529290588a83852a0754cee3e.camel@hammerspace.com> <20201201022834.GA241188@pick.fieldses.org> <66f93208c6edf2dad70ee41c349c5130b30b8ed4.camel@hammerspace.com> <20201201031130.GD22446@fieldses.org> <213a0908e8c9e743d6ae4d6f3b2679e2e879cce4.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Dec 01, 2020 at 03:23:00AM +0000, Trond Myklebust wrote: > On Tue, 2020-12-01 at 03:16 +0000, Trond Myklebust wrote: > > On Mon, 2020-11-30 at 22:11 -0500, bfields@fieldses.org wrote: > > > On Tue, Dec 01, 2020 at 03:06:46AM +0000, Trond Myklebust wrote: > > > > A local filesystem might choose to set the 'non-atomic' flag > > > > without > > > > wanting to turn off NFSv3 WCC attributes. Yes, the latter are > > > > assumed > > > > to be atomic, but a number of commercial servers do abuse that > > > > assumption in practice. > > > > > > What do you mean by abusing that assumption? > > > > > > I thought that leaving off the post-op attrs was the v3 protocol's > > > way > > > of saying that it couldn't give you atomic wcc information. > > > > > > > I mean that a number of commercial servers will happily return NFSv3 > > pre/post-operation WCC information that is not atomic with the > > operation that is supposed to be 'protected'. This is, after all, why > > the NFSv4 "struct change_info4" added the 'atomic' field in the first > > place. > > BTW: To be fair, so does knfsd... > > At Hammerspace, we had some real problems recently due to XFS exports > returning non-atomic values for the "space used" field. Speculative > preallocation is a real bitch: > https://xfs.org/index.php/XFS_FAQ#Q:_What_is_speculative_preallocation.3F So you think xfs should omit v3 post-operation attributes and still set the atomic bit in v4 replies? Would that have helped in the cases you saw? It seems like speculative preallocation isn't a problem with atomicity exactly--it couldn't be avoided by applications cooperating with some locking scheme, for example, if I'm understanding right. --b.