Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3204679pxb; Mon, 6 Sep 2021 15:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIFzt01OsWFbhlR8MYTFbxoQsDOJcgI3Cl5tSkFxzshCI7Io7n1NyR9JNBywkPllEssBeM X-Received: by 2002:aa7:dcc2:: with SMTP id w2mr15419545edu.192.1630967134761; Mon, 06 Sep 2021 15:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630967134; cv=none; d=google.com; s=arc-20160816; b=f/LvGdqYEG3uX+6JPXBljxNWZywuFi1bYcLJdlQSNPPfBXYZGGrU+1BwbXkSXjSPc/ weBgeLrvuUh6r6GL+vjz9j+ON4ggzwngVhorDwYfJ8XaUNzqHlci8JOJmXj2sMlMzgJP kmi/YBWdXM449zakglZejhQmFxJ2axnKAiSs75TUlEMicv26KVszerUq12oN63aRWzP+ nrmfYrTOif1mcgw+af2HNVg6owQVFG9OTT4NBsjwE7O0j5fM1MmXUbm907FyrFFaPxu3 oEIB/UlVyCxYLsXFE6uKfnNhN8FrEit1CuJdEVZhwxzp1I4UhAcs4evn7mBzrkBbyZvL StKA== 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=7qQ1YEVuELfcLLU6rsSG8Nh0MZtTiMr8wJzVl4dRIAQ=; b=UQy6/PH0pGVk7jpuua8LpOhs9vxBFi3ueWa4p80YtZX1BFsrwRhP5xjfbq0zhyjdCQ vim6kD99GpJsBrgNcrZ6rIiGGRVlRPh0nXqw8m1y0Q3+fGHk3Wvn3ZZFxYNwXXO7c9bS GjLIMqS3A8RU/C1dHkV419H9ZnBmGHtF0KXAq1w/nlWzgA0eKoemSTIjZppXh2RVeOvj 5/KKAA6UH3WfnpfRE1mk4003cyY4xM1D5ll6aLlpHCHvO3iYKzqEAfs8SLyUjR5EqbOn u5Ws309BenAvb/p/q26dum3VfEu4gY8QVuounZ3S1qI5ojAGttDI/mIeNubDKqPSkIYp 93Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=EOBrzpDl; 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 n8si6119719edx.340.2021.09.06.15.24.55; Mon, 06 Sep 2021 15:25:34 -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=EOBrzpDl; 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 S233444AbhIFWO2 (ORCPT + 99 others); Mon, 6 Sep 2021 18:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231256AbhIFWO1 (ORCPT ); Mon, 6 Sep 2021 18:14:27 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A07FC061575 for ; Mon, 6 Sep 2021 15:13:22 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id CD59B1C25; Mon, 6 Sep 2021 18:13:20 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org CD59B1C25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1630966400; bh=7qQ1YEVuELfcLLU6rsSG8Nh0MZtTiMr8wJzVl4dRIAQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EOBrzpDls2e2ejFaU6ueSxh7P6fih8qiwmDCJvV1xKw2D95fFJ+5/tz7cw9Bisba9 ihPH+khC4YtqAquYl+rDbCbppfG3dQRC3ttf74sN18SK7JGwG15Rd8TnqnUPEqkylf NxRmWaJ0m0IQLi23GtmM3D3Yt6vn7P+Hvj0XdOio= Date: Mon, 6 Sep 2021 18:13:20 -0400 From: Bruce Fields To: Matthew Wilcox Cc: Chuck Lever III , Neil Brown , Linux NFS Mailing List , Mel Gorman , Linux-MM Subject: Re: [PATCH] SUNRPC: use congestion_wait() in svc_alloc_args() Message-ID: <20210906221320.GA21567@fieldses.org> 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: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Sep 06, 2021 at 09:20:35PM +0100, Matthew Wilcox wrote: > 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/ So, what's the advice for now? Do we add the congestion_wait() call anyway and assume it'll be fixed to do something less broken in the future, or just skip it completely? --b.