Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3997531pxu; Mon, 30 Nov 2020 15:15:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJywH4u32VDBH1vzyCg34Xm2DMU9Q8W7lx7ajeV0LycMhB/RAtd9LoFUmVdi72e2NNQi5jba X-Received: by 2002:a17:906:7c45:: with SMTP id g5mr149282ejp.502.1606778121066; Mon, 30 Nov 2020 15:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606778121; cv=none; d=google.com; s=arc-20160816; b=uUm44VfsKec80+urJanEYcu/6O5g1Q0yg2WmOtyI2rA3K4QIdpJAZzMuaK/HzI6d24 gdYKhWza7pc4rmy+5mcfcdHF3eZ1a4E29Y2scYTYBqr4n2jg4dTkmcNCAT81+3AivTAd dpqONyCq6Fs2gm47seWViSfmuhigYcvFPcbrwSrydOq6cmcwsz23y+F1vV6U2U5KG4uG 1zPMr7/pvyBSoEl/bjzLqltX/tzzA5oW7XGYrQpTx8L1GOGRbJQiLuaoQHtV+CDnYCRY SBuIIiyYHpl7hKMeDNs4Hbydrgy36/l+Slt5UA3xUBX17ZJN92l4xTbZhR9VjVODiJIc lumQ== 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=dOI/rdwtm9VxPcujK2qc8LigCNNactIcyohphNcEoU4=; b=GJ+/vwLlPoChhC5HN8xNM0yKpxVZfEqm3ixf6N4yRCgX10tzQJSwfrfRWKclzLw873 4KyigJ6fIHIgEZfxIhs4WbjwgKANyrlRmDVJfzXIgbQzZl9oiqsu4XozN/pJFnUDAAOn 2MXwwJGajCEBwTgN/pZOXHqgZippfVMvHL4t34Ln1nw8Cmr7eQQVjkVvmPb1phxHTUie 4LgJ9TeLFZWjGC4xicD4kknWRgZMDqATYmvZin1+5tl2qBjVUjSLOZZpHFGXw1mEXsA9 76ifRTM1UM0ypk8McgzClw9F2wmwyzOYbacC+ha3wOnsSxBMc9PzGT/bENJIiis6aTiK OUBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=p9V754Gs; 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 l5si11419959ejn.545.2020.11.30.15.14.57; Mon, 30 Nov 2020 15:15:21 -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=p9V754Gs; 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 S2388816AbgK3W7I (ORCPT + 99 others); Mon, 30 Nov 2020 17:59:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388811AbgK3W7H (ORCPT ); Mon, 30 Nov 2020 17:59:07 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86A3BC0613D4 for ; Mon, 30 Nov 2020 14:58:43 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id E77F46F4A; Mon, 30 Nov 2020 17:58:42 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org E77F46F4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1606777122; bh=dOI/rdwtm9VxPcujK2qc8LigCNNactIcyohphNcEoU4=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=p9V754GsVSzGVkBn41RI5E1isEOrMl2g3h1odSlhGz6RHsvx+IgWuLSSgg334g9ji /oDs1obMmwDgOlk/5+rQslFR5LPPn1w10CnbIPmH9auQQj0UPGuNB2F33y+CH8yFSZ GcK73+6eHj7IXy4XnqtXt7AZPauY0NrvDiLKlV34= Date: Mon, 30 Nov 2020 17:58:42 -0500 To: trondmy@kernel.org Cc: "J. Bruce Fields" , Chuck Lever , linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/6] nfsd: add a new EXPORT_OP_NOWCC flag to struct export_operations Message-ID: <20201130225842.GA22446@fieldses.org> References: <20201130212455.254469-1-trondmy@kernel.org> <20201130212455.254469-2-trondmy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201130212455.254469-2-trondmy@kernel.org> 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 This is great, thanks: On Mon, Nov 30, 2020 at 04:24:50PM -0500, trondmy@kernel.org wrote: > From: Jeff Layton > > With NFSv3 nfsd will always attempt to send along WCC data to the > client. This generally involves saving off the in-core inode information > prior to doing the operation on the given filehandle, and then issuing a > vfs_getattr to it after the op. > > Some filesystems (particularly clustered or networked ones) have an > expensive ->getattr inode operation. Atomicitiy is also often difficult > or impossible to guarantee on such filesystems. For those, we're best > off not trying to provide WCC information to the client at all, and to > simply allow it to poll for that information as needed with a GETATTR > RPC. > > This patch adds a new flags field to struct export_operations, and > defines a new EXPORT_OP_NOWCC flag that filesystems can use to indicate > that nfsd should not attempt to provide WCC info in NFSv3 replies. It > also adds a blurb about the new flags field and flag to the exporting > documentation. In the v4 case I think it should also turn off the "atomic" flag in the change_info4 structure that's returned by some operations. (Out of curiosity: have you seen this cause actual bugs?) --b.