Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp52256pxb; Wed, 6 Apr 2022 21:43:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtS6KE9M0OfuyKP281eEvVVSxe+Qmf6ppY0bYwRLj8hL/TzvtX4lgapvPG/f0BckDqKXrv X-Received: by 2002:a17:90a:e2c3:b0:1ca:75b7:63d5 with SMTP id fr3-20020a17090ae2c300b001ca75b763d5mr13643075pjb.111.1649306625073; Wed, 06 Apr 2022 21:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649306625; cv=none; d=google.com; s=arc-20160816; b=bU/qr2kvLg4/sLcV+2zT3Z0bW9619Au+7o11a5BeIHT7ssvoA2wWDqnmRjxI3yISI9 lzLOt/hDoN7CMoG3CYb4UqPYVj9NS3w2WeihmsRPost511WCmNsde93m0RS0NT8WFeMx zbkKP2dEc2NuSPod3W44ZU1Om+BIXyt+p3IXlqStHvR0l30OjGWqSlYNbnNejaF1Fj70 OUWZfu9HA4b+Vu7fRs+5xVACMRJ4zXdY9MeQby//I68ecajo81WXGo0fePacFzd+gbfO qRbLRlY5PdQ+0Z1sX8Dnph6Y7DCliflZKiPg/H1I9li6zox4uPgh+giOtvaEvezjVERI wheA== 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=SKTCmJeHffhfBD0bd5Ikkj/Vxo4gt7j66RyaJMQUM+o=; b=Xr7YI4XCqGW7XJnqRfpLNCMOjx9ZXyXvC1bVvt7TEB6JH7dgQnSV0ocChMAA2XUDKF iIovG8UuWGQkcTXTBF1gP+ShrGkDOd1/l4CY9lcznQc4rlo/4sglYmKj7URLXR5QCotb KLO9mnHkZD51IQhHlNlTZtMSYf+xd9Q2Ab8i9Mvel99bC/IVGTKgHArVtQnBVKdnSsZk x3HyzDRYeKEfY4vnoM1X7ydboJy+lhmgoNQqJghwVVuJGeS2Uje1Fv8P6JJSR1wd6FVZ Wl1gBa0L1BTR8SogGEL8irmhx3Nku1IsGfPu7txUr8QqZ9dC2Sp6ty5tXs6JZT11zchX b68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=OzXkNbyA; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a170903020d00b00153b2d1643asi16136510plh.66.2022.04.06.21.43.14; Wed, 06 Apr 2022 21:43:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=OzXkNbyA; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229475AbiDGBvp (ORCPT + 99 others); Wed, 6 Apr 2022 21:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbiDGBvn (ORCPT ); Wed, 6 Apr 2022 21:51:43 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56C0916DB79; Wed, 6 Apr 2022 18:49:40 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id C3923685B; Wed, 6 Apr 2022 21:49:39 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org C3923685B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1649296179; bh=SKTCmJeHffhfBD0bd5Ikkj/Vxo4gt7j66RyaJMQUM+o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OzXkNbyAu9Npq0rQx+2UHJCbcFbJUG504MgILRuSNcBFwQWmPGn5hY+JWdN/Q5MHM Dt60Xnb+XeTBIOQg1Nd/Er3hrPnvJariy5aby/P5USHJU3DILIygRDfOy1ADoHHZV8 c1KeR+fhUdbUZizzcb851U5nlNEehjIHza0QAAEE= Date: Wed, 6 Apr 2022 21:49:39 -0400 From: "J. Bruce Fields" To: NeilBrown Cc: Dave Chinner , Trond Myklebust , Chuck Lever , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: sporadic hangs on generic/186 Message-ID: <20220407014939.GC1242@fieldses.org> References: <20220406195424.GA1242@fieldses.org> <20220407001453.GE1609613@dread.disaster.area> <164929126156.10985.11316778982526844125@noble.neil.brown.name> <164929437439.10985.5253499040284089154@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <164929437439.10985.5253499040284089154@noble.neil.brown.name> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Apr 07, 2022 at 11:19:34AM +1000, NeilBrown wrote: > I had a look through the various places where alloc can now fail. > > I think xdr_alloc_bvec() in xprt_sent_pagedata() is the most likely > cause of a problem here. I don't think an -ENOMEM from there is caught, > so it could likely filter up to NFS and result in the message you got. > > I don't think we can easily handle failure there. We need to stay with > GFP_KERNEL rely on PF_MEMALLOC to make forward progress for > swap-over-NFS. > > Bruce: can you change that one line back to GFP_KERNEL and see if the > problem goes away? Like this? Sure--might take me a day or two to run the tests and get results back.--b. diff --git a/net/sunrpc/socklib.c b/net/sunrpc/socklib.c index 05b38bf68316..506627dc9a0f 100644 --- a/net/sunrpc/socklib.c +++ b/net/sunrpc/socklib.c @@ -223,7 +223,7 @@ static int xprt_send_pagedata(struct socket *sock, struct msghdr *msg, { int err; - err = xdr_alloc_bvec(xdr, rpc_task_gfp_mask()); + err = xdr_alloc_bvec(xdr, GFP_KERNEL); if (err < 0) return err;