Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1166051pxb; Thu, 24 Mar 2022 14:10:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXUJcipMR9lQ3aUrh93EROVDGJgX6i57zN1K9HzrVr4V66vmARrZvqz5G4k9oZRF9htX8d X-Received: by 2002:a17:907:9506:b0:6da:b4cd:515b with SMTP id ew6-20020a170907950600b006dab4cd515bmr7925828ejc.602.1648156243118; Thu, 24 Mar 2022 14:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648156243; cv=none; d=google.com; s=arc-20160816; b=eVPam07t/szQD4nF6wXQS3BUKBl1Ua8piFj3v+oO/4gd5ANZhD8hk08nq/wLqMMqcB xCW+CNKyVBApRMbprK/j8UdwSrE5/jThliqclGWwOFuDSOyP9WtEXhDq33J6hKCuIf+T /JZVdsav1S6qICr92yylZkH1lJHfUYvtEJbFCigTNAMMxLeGQW0FpNIJdIrhgkIh67QB jeRW8RYkKaRqMdKApK10BHmAsjJf/vy7h/pmfj7+o5RdWZLoWmMLsGopNrcP/K+mcxGZ jozzmCSoAhGtblBudjPPTDrntRn/EfijMWsxAVXg7Io7W4S3d8sKStonh+I0fD48DzM6 YVNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2c9nC5omyro0oqJBTOr4f7zlwTWfKY8006jYfRgnzrg=; b=sD6fv7wFzfThCoCOMakPOti4WIEkeoRXlxDLsnUJzvIKsBMGrAdJIi5Qgzl4wdVXJb AC8mtcSA/cWgWvOJvol+ejbR9QtxR4/f7gfAbrnJupDHbYN+IpTH4bXXa78M6Ro/dIc6 P8BBz8+cnDerkk9GwlLqvuhmQj22UMdRFYz1vaPpEK+BnngC2ModPPK49eWmAcLwhd2o 2ZjtM4zS4SADWJuJRviUCP0PS3jy1/sM0EZAh7UGpQJZmtpPdhFLNorfgcfR0/7WxDNl HXAZKDxK1FuFJVq9kl5ERP42u6mw6Oq8seXpn8Wds5PS2FN5MLTZ6AIgpvOAloY0VvIh Mo9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CKt5JoWx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020aa7c148000000b00418f00c5838si791402edp.451.2022.03.24.14.10.14; Thu, 24 Mar 2022 14:10:43 -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=@gmail.com header.s=20210112 header.b=CKt5JoWx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347742AbiCXOgF (ORCPT + 99 others); Thu, 24 Mar 2022 10:36:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348570AbiCXOgD (ORCPT ); Thu, 24 Mar 2022 10:36:03 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4440063A0 for ; Thu, 24 Mar 2022 07:34:31 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id x34so5839809ede.8 for ; Thu, 24 Mar 2022 07:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2c9nC5omyro0oqJBTOr4f7zlwTWfKY8006jYfRgnzrg=; b=CKt5JoWxl6Yc6g09WKJx8shYt61ddP145+u5/B08hyOvJ5M/8pzmE0HCwf4Oji1EF0 qG1PvNiMmSoV3BepT6LLbrXBqXckamPBJ2dxak5Kqu3uV52LCKnP+c9l864c7aExfRrM 6CtJziVdhn3enniZDuC5/c0p/MOZrUk3QdvTp4fNaPcejoWEVf+oG92jEZBporGw6Ehv QL9s6BdsvWCznyeuBYIeEM6qIaQtW6C0g4hM2QbuLYzdob9mRqfYuZpb3XHhA37hp9t1 x7Ra7Xp11ngmA97CHhqRDOw7+RmiOvahf9yZ+eykpBkeWyxqdtJqMlS0yWGaDPbUv+mE foKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2c9nC5omyro0oqJBTOr4f7zlwTWfKY8006jYfRgnzrg=; b=DA5ByE4+IS/mJqE9Bz1Egyx4L6sk/uSOTAJ7zAPocXDcJsXKKj9Kcdr5IC1CeZMuvf WznpRq2r1+wIsG6ntOL6njiTYNnIaKwsEL3lcuUbdXyGd0eITT7CHSDI6Up+SNAPhemr vb/4lWwWLl9TAm0404TY7ThA7ERt7wf/Ew4IcqfKVJOH56PrC9UWLjuaMnvNbhchDdOf qABO2EYAAcU7FLTXuVwF+HrYILnQvE58fArrCiB9/EqjPC9anV8OLq3rkv+a4/DqBwJu XjHejhC98Uq0XsbFq/M+97s66rMbjXV7BvMQeso1ZJRyP6R48oPPXLNZW8j4SMTtJgy3 wYlg== X-Gm-Message-State: AOAM531PlpYkeoCwa9x/6xFaJsIjWiqDT6n1JJtwPz0yFHZ2aEMadSbM fpT59NAtmeZ2SoQoUXBQnG5DvWDaK+EQez2yfQU= X-Received: by 2002:a50:ec96:0:b0:419:75fb:a07b with SMTP id e22-20020a50ec96000000b0041975fba07bmr7019433edr.316.1648132469567; Thu, 24 Mar 2022 07:34:29 -0700 (PDT) MIME-Version: 1.0 References: <20220324142232.63492-1-olga.kornievskaia@gmail.com> In-Reply-To: <20220324142232.63492-1-olga.kornievskaia@gmail.com> From: Olga Kornievskaia Date: Thu, 24 Mar 2022 10:34:18 -0400 Message-ID: Subject: Re: [PATCH 1/1] NFSv4.1: don't retry BIND_CONN_TO_SESSION on session error To: Trond Myklebust , Anna Schumaker Cc: linux-nfs Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Apologies. Disregard this unclean patch. Seems like some unwanted changes have gotten in. I will resend. On Thu, Mar 24, 2022 at 10:22 AM Olga Kornievskaia wrote: > > From: Olga Kornievskaia > > There is no reason to retry the operation if a session error had > occurred in such case result structure isn't filled out. > > Fixes: dff58530c4ca ("NFSv4.1: fix handling of backchannel binding in BIND_CONN_TO_SESSION") > Signed-off-by: Olga Kornievskaia > --- > Documentation/admin-guide/kernel-parameters.txt | 9 ++++++++- > fs/nfs/nfs4proc.c | 1 + > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index f5a27f067db9..cdef24eef648 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -5639,7 +5639,7 @@ > pernode one pool for each NUMA node (equivalent > to global on non-NUMA machines) > > - sunrpc.tcp_slot_table_entries= > + sunrpc.max_tcp_slot_table_entries= > sunrpc.udp_slot_table_entries= > [NFS,SUNRPC] > Sets the upper limit on the number of simultaneous > @@ -5648,6 +5648,13 @@ > improve throughput, but will also increase the > amount of memory reserved for use by the client. > > + sunrpc.tcp_slot_table_entries= > + [NFS,SUNRPC] > + Sets the minimum limit on the number of simultaneous > + RPC calls that can be sent from the client to a > + server. RPC session table then would dynamically grow > + until it reaches the max_tcp_slot_table_entries. > + > suspend.pm_test_delay= > [SUSPEND] > Sets the number of seconds to remain in a suspend test > diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c > index dd7a4c2a3f05..e3f5b380cefe 100644 > --- a/fs/nfs/nfs4proc.c > +++ b/fs/nfs/nfs4proc.c > @@ -8340,6 +8340,7 @@ nfs4_bind_one_conn_to_session_done(struct rpc_task *task, void *calldata) > case -NFS4ERR_DEADSESSION: > nfs4_schedule_session_recovery(clp->cl_session, > task->tk_status); > + return; > } > if (args->dir == NFS4_CDFC4_FORE_OR_BOTH && > res->dir != NFS4_CDFS4_BOTH) { > -- > 2.27.0 >