Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3407764pxu; Mon, 19 Oct 2020 11:15:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Ey3D2qdAuecr9Q8L/oIn1/HRa4PCotLOM+RNFv7IpKwNBDyJyCymGEbl3E4vnha7otyo X-Received: by 2002:a17:906:364f:: with SMTP id r15mr1135142ejb.388.1603131346160; Mon, 19 Oct 2020 11:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603131346; cv=none; d=google.com; s=arc-20160816; b=rtnrdHb72ZMdnuEF5wpM79G38/r0x+8g+uPymC8BHjtxMed4/Awf9AQH87fuD5v0Dj 4djPhXx7A4xsG39EHb3ypDVG3fzLTMyZmGTDEom0TkkybjbtXn7mjjYssfkafGK5/DVh CvQfBV/RWVY7mOL1N2WnyveGkSIYGsi0sQoejI+fFb+sanpkeh+0sWWhQV8KggHQE8Wf H4Q21Apmdov1/2gIdf2PLj+PSqsW7Lv2KiVVNuUQfTgLAewZvsXu/RK4g5+41iiUDns9 QkDLaoCCL5hnGBtSC9TFgclw+iLxiSjrc703KyAAxnV6ovf0kWMKh71gCYPVGmy8Kf9E comg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=J2Pg4v3YujRV0+vcUFsbBn6pmz8QBx7YSQ0y+qBWPN8=; b=tACuSSvJfQyBg2mlePmiT0M2K3lxKMkLAcLOLeQFQ8/jp/gtS13FTFZn697DyWcezg sPKGDi71bMgK52TSwGBnd6R27CN4EZDVUQaIBt4frmx7X/yPqwiBM+gidrXuhq7PpgfB +yCj3JVi4rcF3ZqoYWlYWtKfUybeb8Ri7PePxwmWMMWdj4hZ/DAbfZTBV5iXETmJBMTO vIzv1OzwzplO/a4x/Z4bhBpgzwBO5NSBaFITiyrHBuP9/yinCryXhOkE44ijZW2U5yCr pIj4bclwxeoJEaXoGo4KHwt/xlU2n3k1JLt0S35aApeEJs+N2dyCYqd/b7PXpkRGT9qA 9LOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=BpudqVKg; 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 h27si590708ejd.668.2020.10.19.11.15.21; Mon, 19 Oct 2020 11:15:46 -0700 (PDT) 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=BpudqVKg; 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 S1730216AbgJSSOK (ORCPT + 99 others); Mon, 19 Oct 2020 14:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727681AbgJSSOK (ORCPT ); Mon, 19 Oct 2020 14:14:10 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7993FC0613CE for ; Mon, 19 Oct 2020 11:14:10 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id C3FC51C81; Mon, 19 Oct 2020 14:14:09 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org C3FC51C81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1603131249; bh=J2Pg4v3YujRV0+vcUFsbBn6pmz8QBx7YSQ0y+qBWPN8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BpudqVKg5iSYgcrppXf4NZOTx5ppoBG/oUDz9uM4K5A7A6XuQ3vzw2Ai35NCDWhKQ 9bJG63i/VTvpZPd+bag4aeSnSwlyQStuLr46FhEsWicKWWUX581cKChVO1TRN7Ew9E 3+2ZrbltvC/ceR53fhCle3voYKX/vDf+OhuqJi44= Date: Mon, 19 Oct 2020 14:14:09 -0400 From: "J. Bruce Fields" To: Guy Keren Cc: linux-nfs@vger.kernel.org Subject: Re: questions about the linux NFS 4.1 client and persistent sessions Message-ID: <20201019181409.GB6692@fieldses.org> References: <02b2121f-42d1-2587-6705-ca2aadb521bc@vastdata.com> <20201014192659.GA23262@fieldses.org> <20201017211403.GC8644@fieldses.org> 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) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sun, Oct 18, 2020 at 02:18:55PM +0300, Guy Keren wrote: > so suppose that the client sent two 'Open' requests in one compound. > the server finished processing the first, but then had a delegation on > the 2nd one, so it is supposed to return an NFS4_OK to the first Open > and a NFSERR_DELAY for the 2nd open (and this is also the compound > response that the server will store in its Duplicate Request Cache). > if the server had a temporary network disconnection, or had a server > restart, then when the client re-connects and re-sends this compound > request, it receives the response from the server's Duplicate Request > Cache (with OK for the first open and DELA?Y For the 2nd). than, i > presume that the client needs to accept that the first Open already > succeeded, and when creating a new session, re-send only the 2nd Open > request. does this make sense? Sounds right. > > I don't know of any client that actually does that, for what it's worth. > > The Linux client, for example, doesn't send any compounds that I can > > think of that have more than one nonidempotent op. > > does it mean that the linux NFS 4.1 client will also never send two > Write requests in the same compound? and never send an Open request > which might create a file, with a Write request in the same compound? "Will never" might be a little strong--maybe there'll be a reason to do it some day. A server should be prepared to handle it. But the client doesn't currently do either of those things. --b.