From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384605; b=jrFnKK5K9qomMroHHdD3H4IbtMx29LWB8VSfnix9ttOLmDshPHn71B5GKbmoCX+s07DH LGnDeTQyxN04dLJRQ0/6+4hBXb2HSn9CbrcuOfRHO4Hwk4htK1SGc2+iTZ2y2ZFAVb/JM XZIyiy94iRLQ+8V0WRPhaZvEgsznRJnzGNuDTQBRAnJP0/5HRFkGXjxitKqRQ9fPdOxVA c4hZYqfMRMC1kks2wLsIrJibjz7BDKn8KRFXK0+3ld5AUl8q6GUBGFe4Su1kvhg9O56mt 8k27VoNl/pOqTsTSgH4OJp4jz5dHBl1ws5C8fDimGm+utvX1rkYVbZH5lW5baieQgWQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384605; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=LpB2UWUq2hM0a7RvLfO3GpGVD7Z2MaUVAgh6sEnJTFo=; b=kauBd/6XjVm1R4G5pMw+Y/AujgUWy2m4GZd6pTVyQ/pghpnnrWsfTaHFmvZCsQIX8DXe roL9BwWOGDfpGseInNMBRV05ry9Z0ddzBhNuR6WaUWqBx1fIuqRS8+z9A9snjIdWa7zJW JDU4F8gXWZruu9H/5IaGsmOFOqNJq05/m1Zy1IyZBBusE4hYcsBsYnHlfeHT4Mj/WIPQt ZCLYZU2ct0PLKaxA+HqKvize+s0RCFNgULtCzFmUunc1m6hm9CnBEi1ztw/B4lxwo/KHt JEuCDips+upB+h8rpiRQ+Ptq74uQJ0Av6ATK+7LecdiY/d9THF2lAZvhrVUrRsVS+yA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=QiRzdYeu; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3111606A322; Fri, 4 Dec 2026 11:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=QiRzdYeu Received: by smtp.kernel.org (Postfix) with ESMTPSA id A45A01F00897; Fri, 4 Dec 2026 11:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384605; bh=LpB2UWUq2hM0a7RvLfO3GpGVD7Z2MaUVAgh6sEnJTFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QiRzdYeuJ6yJrIF83isGnRwGO3UFRFOUCQ2Zi8T0wCqWT3tMZTbDNG/2J4/wBJWlS h7HaexCDGq/EJTvtepGdSCVJn3pAypC/T8QVNqZgdwrWnZJZ+w/BTs41zsV6F/pV11 YVFeavRHwcnsA6asr6Wpa0b+h/BuE0unpMy4BAIQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Avi Weiss , Anna Schumaker , Sasha Levin Subject: [PATCH 6.6 0220/1167] SUNRPC: preserve timeout policy when cloning clients Date: Fri, 4 Dec 2026 18:54:07 +0900 Message-ID: <20261204100707.799706670@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Avi Weiss [ Upstream commit 5b0ac1f82201c2ab2d9c31ed568cc782bac6a399 ] rpc_clone_client() and rpc_clone_client_set_auth() leave the timeout argument unset, causing rpc_new_client() to use the transport defaults instead of the parent's configured timeout. This also affects pNFS data-server clients and changes their request timeout and initial RTT calculations. Use the parent's cl_timeout when no timeout is specified. Preserve explicitly supplied timeout overrides. Fixes: 1b63a75180c6 ("SUNRPC: Refactor rpc_clone_client()") Signed-off-by: Avi Weiss Signed-off-by: Anna Schumaker Signed-off-by: Sasha Levin --- net/sunrpc/clnt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 29b73519220fe..4026bf55c32ff 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -656,6 +656,8 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args, } args->servername = xprt->servername; args->nodename = clnt->cl_nodename; + if (!args->timeout) + args->timeout = clnt->cl_timeout; new = rpc_new_client(args, xps, xprt, clnt); if (IS_ERR(new)) -- 2.53.0