From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9235C171A1 for ; Mon, 22 May 2023 19:18:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1C40C433EF; Mon, 22 May 2023 19:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684783089; bh=OrVqgmjApY+F/H8KLdOmdMH0nFsG8z/sMZvpuT2L3Bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o3swk41K0dO+IqzJ4toIj6kzEIEQ4XkQ4SU3WM10iF9Ii1MV+Ul62JksQy84dVNVx /77Sd/LTf+rH8gbYVH61S3Dd+d180u6YHa2LHDc54EX7yAL9flgjhADmHFxIypw1Ci 8A6VtTfEbB4x+D3tcgoJSSBKQB4q9na7UIzX74yk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chuck Lever , Sasha Levin Subject: [PATCH 5.15 136/203] SUNRPC: Remove dead code in svc_tcp_release_rqst() Date: Mon, 22 May 2023 20:09:20 +0100 Message-Id: <20230522190358.731015709@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522190354.935300867@linuxfoundation.org> References: <20230522190354.935300867@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Chuck Lever [ Upstream commit 4af8b42e5629b97bdde287d5d6c250535d324676 ] Clean up: svc_tcp_sendto() always sets rq_xprt_ctxt to NULL. Signed-off-by: Chuck Lever Stable-dep-of: 948f072ada23 ("SUNRPC: always free ctxt when freeing deferred request") Signed-off-by: Sasha Levin --- net/sunrpc/svcsock.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 6ea3d87e11475..a28a6820852b2 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -117,15 +117,6 @@ static void svc_reclassify_socket(struct socket *sock) */ static void svc_tcp_release_rqst(struct svc_rqst *rqstp) { - struct sk_buff *skb = rqstp->rq_xprt_ctxt; - - if (skb) { - struct svc_sock *svsk = - container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); - - rqstp->rq_xprt_ctxt = NULL; - skb_free_datagram_locked(svsk->sk_sk, skb); - } } /** -- 2.39.2