Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp824680ybz; Wed, 29 Apr 2020 10:02:45 -0700 (PDT) X-Google-Smtp-Source: APiQypK5ZXdeemjb2dgFv+XyAfSsMsoSqHo1CpmGmevUemJttUXk6vE/hHdAyA58MTLQyj6wr9mI X-Received: by 2002:a17:906:4c46:: with SMTP id d6mr3502132ejw.257.1588179765020; Wed, 29 Apr 2020 10:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588179765; cv=none; d=google.com; s=arc-20160816; b=o27hTP1sHIwFhBY3IoBGrlCgRIk/BXaSvrOc6bTWeUdOph0Fhel2FvW5r4kVwQrBBz sjpii/BpIhHALR/FUHHNIuouyNA32cNlNPGwjNQrzAoBsXKoAYGcAArI6B/QA9hMGJGV tzwcFZFHY4lrK/3TxPabpARb6fTwZBo3CZM/AftVI05w2jjdf88+r8QmIMt6RnWwdRqT wVPKMukwTi+RAM+ZmTThiDKPNaHoU4nf6Co3XoT3M5oyQb0B8Xk83q/DB7IOiVP3nDO7 6I2q24/SZNSfHO6g6KUppbHAGut20+dIieUPms7ta2IcVmSWSKeve97ID2u1jPruhlto tO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kN5atnseD/MI1RoXbFw2qpHRHxbEApI77Gm6wtEo0wc=; b=QngPcCTy2q+gzjaZbd9NuA/vy2BPDUN0yWvFvMdD/HmbM0anqonc+nx5LBmfLYI6JV 8CcUreA7gnRnwlYzEj6bR/YNxT8aq5TaAn0osgzYT0OjDSpqObS9kqNOKWx6Khl+sUSK uk+O/LN9d0UR6t55PqN3zkRsqDnhjeE+O542YFf9b8AE+Ft1rUwEPIJ3L506jd+DdoD8 XsyC6ESjsVoZ1ePYbgCFqKgpn2cDuw/YVsJpn9hfRTOiXvow+hfEYzzPDB1LtX8tYfaI WNw75L3qQ87XJRNjBzNTkAFfb7F5Or4j77C0HoBdmevk88DGgEjckY6C2Iko6Z/8E2Dt QBwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 i24si3914948edy.602.2020.04.29.10.02.12; Wed, 29 Apr 2020 10:02:45 -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; 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 S1726689AbgD2Q7C (ORCPT + 99 others); Wed, 29 Apr 2020 12:59:02 -0400 Received: from fieldses.org ([173.255.197.46]:36902 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbgD2Q7C (ORCPT ); Wed, 29 Apr 2020 12:59:02 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 08414200D; Wed, 29 Apr 2020 12:59:02 -0400 (EDT) Date: Wed, 29 Apr 2020 12:59:01 -0400 From: "J. Bruce Fields" To: Olga Kornievskaia Cc: Trond Myklebust , "linux-nfs@vger.kernel.org" Subject: Re: handling ERR_SERVERFAULT on RESTOREFH Message-ID: <20200429165901.GC4799@fieldses.org> References: <98410608e028cb4b53024c7669e0fb70fea98214.camel@hammerspace.com> <98a10c8775e4127419ac57630f839744bdf1063d.camel@hammerspace.com> <8549f1fc955faedc35d810a4ad3e21904379a59a.camel@hammerspace.com> <20200429154638.GB4799@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) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Apr 29, 2020 at 12:22:16PM -0400, Olga Kornievskaia wrote: > On Wed, Apr 29, 2020 at 11:46 AM J. Bruce Fields wrote: > > > > On Tue, Apr 28, 2020 at 10:12:29PM -0400, Olga Kornievskaia wrote: > > > I also believe that client shouldn't be coded to a broken server. But > > > in some of those cases, the client is not spec compliant, how is that > > > a server bug? The case of SERVERFAULT of RESTOREFH I'm not sure what > > > to make of it. I think it's more of a spec failure to address. It > > > seems that server isn't allowed to fail after executing a > > > non-idempotent operation but that's a hard requirement. I still think > > > that client's best set of action is to ignore errors on RESTOREFH. > > > > Maybe. But how is a server hitting SERVERFAULT on RESTOREFH, anyway? > > That's pretty weird. > > An example error is ENOMEM. A server is doing operations to lookup the > filehandle (due to it being some other place) and needs to allocate > memory. It's possible that resources are currently unavailable. This is a filehandle that's been previously used in the compound. All the resource use I can think of here (filehandle storage, xdr reply buffer space...) is very predictable in this compound. If anything was to cause trouble I'd expect it to be the GETATTR reply. --b.