Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp687166pxb; Tue, 5 Apr 2022 18:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/heGyLs86WSPqwQ3GsWYEfPz33I3XgcML/wFpGZ6wZbmH7noqC5cicoP7wgnadAOENzrO X-Received: by 2002:a63:204a:0:b0:399:5905:37ab with SMTP id r10-20020a63204a000000b00399590537abmr5146627pgm.229.1649209720931; Tue, 05 Apr 2022 18:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209720; cv=none; d=google.com; s=arc-20160816; b=fG09sjXryTE3yVJBz4VGLCUbZ8XjI6FB0sqOiKWwV8huJfEqA41C5/KpiumqiSp82K m/Z9vEP1dghp5OJRIVaxgf9exUmcbHCIR/3YvOzOBfd40vGwSSICvHzMl9gfrqHvWB6I sv4MMPbOg41TKx3/70tsTqeIM3fopDDJaMprvWWCf8LKxeLgvi2Oiqa60AUwiyIG0Lzg OSkscNmKZjBKGQbzELN83cDVFqZnDM1FRQ94f7Zacg3okAJy8FNChwtcWtddw+N/pQLr rKEuskykP5bSH1nTAMpq4VFaVMWMv3RkdrGhxTOQD5q31llAz9mLqxwsVGi71ey2Jc3b f5fQ== 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=Oh0i4RYh5Ap25DZAFzXHi44Oe6GRKRIBKfytgCByikk=; b=egfN3VqiMBMkuPl9fOBJQ/Ao3FEeiHwxNwl6TSlWb57llnqNw52L5CgeTBk5f4lqvv NTPa4++T0CZp0mTaSoJVdGD86D5h6TiOJI6HbN5C11Ll3ubKC+JdDLjtvN1y/Cv6j9FG 1hHmBtdVt/xCDdehlXy56mR32lsx8HkbdsXHfAqx/6UtteyxFYCCo/1YKmtAQb2Os47F jS3r0UI4P+u7ZTWM0MPcEztHnQx3P87Ruk7Wbxz8tbkqL2v1IkYDXkKkYCAQOYfPmSDv hIF1NqUctukrIS2yx1laQK7KAIi4TNbZz/ay4MUUcro5SFrCwM0rzS9d9OAalBvg05XA vMxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JiW2K8te; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj13-20020a17090b4d8d00b001c635828b95si3597906pjb.100.2022.04.05.18.48.26; Tue, 05 Apr 2022 18:48:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=JiW2K8te; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380769AbiDENOJ (ORCPT + 99 others); Tue, 5 Apr 2022 09:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344227AbiDEJSu (ORCPT ); Tue, 5 Apr 2022 05:18:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E76948E51; Tue, 5 Apr 2022 02:05:53 -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 DF35C61572; Tue, 5 Apr 2022 09:05:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA20CC385A1; Tue, 5 Apr 2022 09:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149552; bh=YGVaaR9c0okTBwvGolPk7S8tfY+4N8K28BIk4VFhkOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JiW2K8teU3mgG/GMriUoWHf3obB2DKr4aPbXaXeihzwnNbaSKro5TecFyNSSODB1D a9q72S3ePXU5BKc97YuSrGV7FDRvyJYgZfDhfuSyzi43ezbtyJkZ4rWps2zxULUjwd nkOJY1stNHPDdG6KHDFO33tptgE2gndix6gJ4HFM= 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.16 0719/1017] NFSv4.1: dont retry BIND_CONN_TO_SESSION on session error Date: Tue, 5 Apr 2022 09:27:12 +0200 Message-Id: <20220405070415.610171714@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-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 0abbbf5d2bdf..5298c3a278c5 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -8275,6 +8275,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