Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1003582pxb; Wed, 6 Apr 2022 06:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk38oS9JsQg5cB6CBPUKTPLY1KdkAiKIfE6YSVCA7SW8aZ3GvLr8UFLKq6sQuLKeKT0gdk X-Received: by 2002:a17:902:d70e:b0:156:1b99:e909 with SMTP id w14-20020a170902d70e00b001561b99e909mr8856129ply.155.1649251805029; Wed, 06 Apr 2022 06:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649251805; cv=none; d=google.com; s=arc-20160816; b=h2Z4GgTykvcKrtAfLMD27mQydPheIkmRSevmukYknd6eOS9M9DWpZIgcJ+JSBatV+7 9T7LsXCiqLAlsfCjoqO7rf+rzkH8HHy6PEhm3C3eDyOOQvNDBbi3V3h7CfVllNyGoTd6 CZt9KfGI96wfBn0TmjIV9LSFjce0T9ms1+cgYRRdOG6CfAwatutEg0m/LYG//mfJGGvj JTJklf+N0eoEmvPTTHAH1eJMUpNKmf1frGDSqTJtbsOOrjp6uxk6VfVx2wjMid8P8mwC grfPwOlWGEes4/YRsT9o1ptQ4uTTENWaHtSqkMuYbF+46RHxbnxEkUVV8lnHKBF57Ha2 UC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=d6HPibVAXl+KFgQ+IsQKkO356VC/5QoSSMzWDM0Obok=; b=OP1OEGTsxur3ekoPdElnjjvUhGNcsdVaIDEISX81Akc+zVUWujNcVSBFKi9rAdW/Vh gJEZ5M0B7JWeEP5+5pymYA34gHR2WAlcX0bQ0qT7riNTqUz1A0izMLywSmABSt1i1kPb W5zULCnxSWT8vFYTFFFenIajpkKVJksardopwP5aMHqpFlZts0aM1p5Iz+/Lvzx4Ik04 QTquGFwZLPmK4rTK4b2RHmtrtg++z//k6MUn/32QTRnxwc3D6SYkwpkFUd6i2Vs9fbJw MxhIWijTac2cU10E118aTSg1GqKnIeC7CBp8o1ElH85VdpUjM0aDGgCBvLCXUDLGOCO9 S6UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RaUVvSEw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 22-20020a630316000000b003816043ee3asi15693201pgd.47.2022.04.06.06.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:30:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RaUVvSEw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C70A535422; Wed, 6 Apr 2022 04:08:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381303AbiDFCFO (ORCPT + 99 others); Tue, 5 Apr 2022 22:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349538AbiDEJuL (ORCPT ); Tue, 5 Apr 2022 05:50:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD01322A; Tue, 5 Apr 2022 02:48:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 496AE61576; Tue, 5 Apr 2022 09:48:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54143C385A2; Tue, 5 Apr 2022 09:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152092; bh=+sWvTD6FOqqcuHADt21hlAnfUn1I2GaAJOelYaalGws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RaUVvSEwkYPmreZf3XXPAPZO4/yqHb2ljme4LOUtZgbpxpkXhugWbpLPWsX/A3Ttp JLoVSr/ycQJndR3GNQSR96e8ucCDRD84yq5fMHMSZetSWZLcXMjcz0jvPt1VYN8vgV vdtFnTVhlDIJH7CHacU7+G/QB6t0YZWjZ+bwnfEg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olga Kornievskaia , Trond Myklebust , Sasha Levin Subject: [PATCH 5.15 651/913] NFSv4.1: dont retry BIND_CONN_TO_SESSION on session error Date: Tue, 5 Apr 2022 09:28:33 +0200 Message-Id: <20220405070359.352735849@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org From: Olga Kornievskaia [ Upstream commit 1d15d121cc2ad4d016a7dc1493132a9696f91fc5 ] 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 Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/nfs4proc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 53be03681f69..dababa6cf3f4 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -8341,6 +8341,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.34.1