Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3442371pxb; Mon, 30 Aug 2021 02:13:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQYzQ1/XBUEuuEak5kPvA6QggMFO+Vn2Wp4O769Ccf4nDnIYTxwUYrI1zDv4sHz+MFaqj9 X-Received: by 2002:a17:906:585a:: with SMTP id h26mr24595017ejs.31.1630314815877; Mon, 30 Aug 2021 02:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630314815; cv=none; d=google.com; s=arc-20160816; b=WdI2x2Gc6firT+8g7aTXy4DOM7HkU/46dL+5MGpF5iEtQ9POe28hSy2rtgZiEJf2Hl RnHw6Ep8VxqM8cQGk/jPCrmpFSEOnTfvUrfds8Qu0nY2c3uU2B2Bf0wOKJvhp6SzR/jU pFvgvMo4CRNNxoY82T/zQTUDj4MZB/usHM8C54xKEf9unwwdNCNXOTp5Ebpq9kNGk18Z y4ngCuAxPYLuPBsbZVMQSbsXk9gqLis1gRGCNxoSskhBclJd25PFSvYNgrOWx+NEIfOd eRwfHeIoWBv5FZH3+N3MRKK3tiZwA4kdx48TdXyz9RDc6Sj84MzR+wJOvE6hDwLXSFkI d2Pw== 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; bh=nywd0oz6iwwHwglHPbyfAVv9NJlMdcowHwWK98LNbhY=; b=qXSafKF1m+eDk4afrJX6kXHJOnr1JuTgN4bBKH6t8G5SR7LFDoQMaR7fRIrQj3QRBR +eiX0w+T8pzk01veKA/GugalrfA7wl0DM9kX/SVAnJxAurYszpSC+CzTooQ49nSPo3n5 DkZKk0DqfrUP9BBAVCer07DEQiEEJYZfey6HhSA9Gj6IbxFrAMs+g4qrKYiesisudbVf N+dOS9JoxagGHfmq+MwuVfwmNB2bzLJfsGQNJcwEA/U6sXNgSQFFYEgB4AjiWQxGHYor JW9cJNoREn3eXLrp5EJcLJC5z7Dxol4Rz8pm25PdWN9g2555+YomObcAS+zA0xHPCl4r MB2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=lffSWkpW; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si13099693ejp.504.2021.08.30.02.12.59; Mon, 30 Aug 2021 02:13:35 -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=@suse.com header.s=susede1 header.b=lffSWkpW; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234714AbhH3JNF (ORCPT + 99 others); Mon, 30 Aug 2021 05:13:05 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:47876 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235496AbhH3JNE (ORCPT ); Mon, 30 Aug 2021 05:13:04 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 56B3B22107; Mon, 30 Aug 2021 09:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1630314730; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nywd0oz6iwwHwglHPbyfAVv9NJlMdcowHwWK98LNbhY=; b=lffSWkpWgFlYo+ZZM06LAjRDIY5hi3nsHxp8I8HExonKk5tXEZT5IYAPnn1X3QghJbBNeE qyHE9DDsETENNM0pWho6lb8RIB/O5MxI3x3o0bPdAmP3RY7sJIGAsSOBk/820h5BSTnrrS /t2QDjpvXH3Xf5ebqgUZbXx8r8PE7aE= Received: from suse.com (unknown [10.163.43.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id CFF69A3B9C; Mon, 30 Aug 2021 09:12:09 +0000 (UTC) Date: Mon, 30 Aug 2021 10:12:08 +0100 From: Mel Gorman To: NeilBrown Cc: Chuck Lever III , Mike Javorski , Linux NFS Mailing List Subject: Re: [PATCH] SUNRPC: don't pause on incomplete allocation Message-ID: <20210830091208.GB3997@suse.com> References: <163004202961.7591.12633163545286005205@noble.neil.brown.name> <163004848514.7591.2757618782251492498@noble.neil.brown.name> <6CC9C852-CEE3-4657-86AD-9D5759E2BE1C@oracle.com> <416268C9-BEAC-483C-9392-8139340BC849@oracle.com> <12B831AA-4A4E-4102-ADA3-97B6FA0B119E@oracle.com> <163027659478.7591.8897815399981483759@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <163027659478.7591.8897815399981483759@noble.neil.brown.name> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Aug 30, 2021 at 08:36:34AM +1000, NeilBrown wrote: > > alloc_pages_bulk_array() attempts to allocate at least one page based on > the provided pages, and then opportunistically allocates more if that > can be done without dropping the spinlock. > > So if it returns fewer than requested, that could just mean that it > needed to drop the lock. In that case, try again immediately. > > Only pause for a time if no progress could be made. > > Reported-and-tested-by: Mike Javorski > Reported-and-tested-by: Lothar Paltins > Fixes: f6e70aab9dfe ("SUNRPC: refresh rq_pages using a bulk page allocator") > Signed-off-by: NeilBrown Acked-by: Mel Gorman -- Mel Gorman SUSE Labs