Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3142903pxb; Mon, 6 Sep 2021 13:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGTVcYgAtcT+pS2Ccpmoh2KqcoaVWZXtZ9BL7KoFP9jkYXOfr0JFxbVMyaXT+lQJ4psm3z X-Received: by 2002:a6b:3f82:: with SMTP id m124mr10788250ioa.184.1630960016676; Mon, 06 Sep 2021 13:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630960016; cv=none; d=google.com; s=arc-20160816; b=fCSovuz2I91UBVcgsBRCxZlpFcxv3Sv5BHMa7wuj7UZJPxKFbkav072594RbR4rxab XkBX6OL8kHh0R/zICZNyxyGEuv3kWmhsqIR9weGjsy1YeAl89AfZwkkonf2JfS/zipAo e8Mv8rWAK10wWazNlYXl7pba113/UNdc2ZBxHNwJun80OlnoqEOPeD4qGRfB1j7RR7sl F0OidKAaREzVdzcpEyqafLFdAXalq68BDn9ulZx3qEkqyoEgb8ulqaIfc6R6y0zS6HEk H/bRamEKeuTJGjJEk+XppYviWjdOV5BXnpJzPkoZWDmU7twSKAhYbzveEDQ2Fo+clos6 N+ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FReIuqwvQaH3DM8EOJMpifjLgOWirL3DRmnMdZvC3Vg=; b=urjiF9cQqJHY8VXJo6vPdStiDejl7vqWu2g67LJDuPQjgUxIa+m29eVhoGEUVplitW 4L7BPiUloRpKxohvA873wNiS5edYiVS3rgw0bGs10UFU59QN07YHyVC5XHxrxaYwSkYU vbZnuHpSIq5QVPXEagnmGIjcDi2okh+O8eKA65ncgw/bBdRoAyIV4dWwky8HE7eLYStM MNRpyjdFOwIl/p/mJk2ktDouuCJIKOGh9z/3LoOzzptLPEb5CX95E+1WtEUWHGfAWqBi 1nTWIQuIvNlmD4o6eTZC6MRG4KMDehAmoDkSIMzwMxj/rLfKQ7CjYh4hgf8Cdvdbcy+/ ZIXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J1SnPAe5; 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 v11si7364999iol.46.2021.09.06.13.26.29; Mon, 06 Sep 2021 13:26:56 -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=@infradead.org header.s=casper.20170209 header.b=J1SnPAe5; 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 S236862AbhIFUWi (ORCPT + 99 others); Mon, 6 Sep 2021 16:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbhIFUWi (ORCPT ); Mon, 6 Sep 2021 16:22:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40539C061575 for ; Mon, 6 Sep 2021 13:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FReIuqwvQaH3DM8EOJMpifjLgOWirL3DRmnMdZvC3Vg=; b=J1SnPAe5tlmtNOlAYTVayWMoKY 33JfGi1Oq8qh1U5tcf9Ha9AI0nf9cM+/dEje8frQglY3SEziO02sFjcO4g4W2Y55XkxWXDx2Iuoyx e9+f6g80276rX/kmot8OnxVmyw5/g6bePKm53gtWktuD8nTkwNFZGMtvDyQI6fsJGedpIU5fEw1wy v9OAHenspIQ5FRJ4QfZEYUO1PHqHvP8tyw+46iLunZbfSB+O+erQoe9VSDDnnff8jn492st+EYqbW x8SoS9AnChU5REocCxJqymPFi1ydHcXS8hvq4Dp8xayB7fcfb3hfSmbcR1eRvOJBrY4HKmD8mCEeg iHPw2Bcg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNL6Z-007H6B-D8; Mon, 06 Sep 2021 20:20:52 +0000 Date: Mon, 6 Sep 2021 21:20:35 +0100 From: Matthew Wilcox To: Chuck Lever III Cc: Neil Brown , Bruce Fields , Linux NFS Mailing List , Mel Gorman , Linux-MM Subject: Re: [PATCH] SUNRPC: use congestion_wait() in svc_alloc_args() Message-ID: References: <163090344807.19339.10071205771966144716@noble.neil.brown.name> <848A6498-CFF3-4C66-AE83-959F8221E930@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <848A6498-CFF3-4C66-AE83-959F8221E930@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Sep 06, 2021 at 03:46:34PM +0000, Chuck Lever III wrote: > Hi Neil- > > > On Sep 6, 2021, at 12:44 AM, NeilBrown wrote: > > > > > > Many places that need to wait before retrying a memory allocation use > > congestion_wait(). xfs_buf_alloc_pages() is a good example which > > follows a similar pattern to that in svc_alloc_args(). > > > > It make sense to do the same thing in svc_alloc_args(); This will allow > > the allocation to be retried sooner if some backing device becomes > > non-congested before the timeout. It's adorable that you believe this is still true. https://lore.kernel.org/linux-mm/20191231125908.GD6788@bombadil.infradead.org/