Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp533968pxv; Thu, 24 Jun 2021 13:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn0uLau0uYpQqreNU/6pLnR5kq4gY0tFJeyLK7yffI4LAe9q9eFfybedPiT6N6JIjjBz5C X-Received: by 2002:a17:906:6d59:: with SMTP id a25mr7082833ejt.83.1624567036967; Thu, 24 Jun 2021 13:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624567036; cv=none; d=google.com; s=arc-20160816; b=PehTSdOlhtD1mNh1gh82mtFEr11MCoDmvI8jAH8YrmR/a63c+JX29ubFYFzosSnhj0 9J3bfwXonWlRI0CqWjsHmS+l9VwQcv2JsXJQfZtfqS6KVGHjEoUFyYFL83eswN7rwrG4 FgYlOrl1pg+gZL0lH6VOf6V8dSXYx70Q+SQau07++VljiT2p3PYUo7kfVH+2JyTx62wy bGkAzd+H+fUNX6r/yPH4TpTjmzG4McDYu11iPd8TFgtIsMs7TYbIR6mVbLT4N2Sm80ci 71af/fHhqKPnybt1GcLU3MzMWOEucgz9sFFIi6ZFN1WIK8Hj71QU3GgWuaUvXmnUFwDf EQZQ== 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=tls3jzc9oYaj4+qpSOk3GKfzx0BwpIPYcLpKpDcbTng=; b=iA/CaJV5U5W1ypYuVwAu3Kibg8wDaUgKnvxD4sFipUOdzky8OX9yQTkGO8zi31x5iz 4etS+S4kVbwZ38lF24rNrjaD/RUi3F+Jn5OG34so3smbnTupZW70C6Fjtn6fLmDH0gxb VVIQfxo5ZP/jNA/agLuKbp59e/HLS8fA6TcFnAPzOvGnc7rm2riDcAxRtPIH9fGdjpKX Auzuc+awTFlJvanuWoha1959qCzga0/HZL/7UOhrspQ65kffpUBzS3SPpxABgLrwpqnY TuyAVO8Ls0M/NHELW1BSj/soUs/W1NjcC+RSWGDS3Q5iO6XNE6c7y5mKnOIpU79OFINR WbUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=o8NOhxEG; 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 se21si4632144ejb.114.2021.06.24.13.36.47; Thu, 24 Jun 2021 13:37:16 -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=o8NOhxEG; 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 S232284AbhFXUi5 (ORCPT + 99 others); Thu, 24 Jun 2021 16:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbhFXUi5 (ORCPT ); Thu, 24 Jun 2021 16:38:57 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B90C061574 for ; Thu, 24 Jun 2021 13:36:38 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 8AE43478E; Thu, 24 Jun 2021 16:36:36 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 8AE43478E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1624566996; bh=tls3jzc9oYaj4+qpSOk3GKfzx0BwpIPYcLpKpDcbTng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o8NOhxEG0RI7SBE1DsUbUlncjNNbtKk88BT0UmQnhXSRu9nVcBInlYBzhxokDt0AQ MallUg++BELlLGL4NncWDE37K4rTPBkcORZlvCQfdfKIwE/PrImlNoHbI55GOvRpkZ 7FMvq0Eiqj1y7IcziIK9HlmgKrPKqrLOBCJI0Q7M= Date: Thu, 24 Jun 2021 16:36:36 -0400 From: "J. Bruce Fields" To: dai.ngo@oracle.com Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH RFC 1/1] nfsd: Initial implementation of NFSv4 Courteous Server Message-ID: <20210624203636.GA4671@fieldses.org> References: <20210603181438.109851-1-dai.ngo@oracle.com> <20210624140216.GB30394@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 Thu, Jun 24, 2021 at 12:50:25PM -0700, dai.ngo@oracle.com wrote: > On 6/24/21 7:02 AM, J. Bruce Fields wrote: > >I'm not sure how to deal with this. I don't think there's an efficient > >way to determine which expired client is responsible for an ENOSPC. So, > >maybe you'd check for ENOSPC and when you see it, remove all expired > >clients and retry if there were any? > > I did a quick check on fs/nfsd and did not see anywhere the server returns > ENOSPC/nfserr_nospc so I'm not sure where to check? Currently we plan to > destroy the courtesy client after 24hr if it has not reconnect but that's > a long time. The error normally originates from the filesystem. Anything that might need to allocate space could hit it, and it could happen to a non-nfsd process. I'm not seeing an easy way to do this; we might need ideas from other filesystem developers. --b.