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 C3799218821; Fri, 30 Jan 2026 08:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769760175; cv=none; b=UwbWX0Z4NVpQz7vS8UjWErP3fmc9DbCNYj2aKHBTvLtWyiqEu8+Cq14cnN+GxqGrbbGyhfaYSupz/q0Lxo66A2/5etx5/AiMqPDlhkMqe21N8V2Txo7qEIuNusdSA/Inw6Wl7oBCjb72CfHDdZMUrpZ4on2aZh/cwP3RepP6OGE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769760175; c=relaxed/simple; bh=KHF5TjZ/e33ZkPfoy50mXkJbNt8TNknTRTxCCMOgNSI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PIpC+EmhJqWpOz6xkhNWi7aObiiEHLq1YTVkLsZCG3xIoQ2N/0uD5ojiDGG6DUat3n8JdSPz3nwbBWCE6t3ZTdACvnaBoJxMHc5sGXhCNIpGy+vvglbRsKNoePJgQtzQtczorJFnzrNMY6ega/iTbBf8MDhSEbfVrNi1t17yI2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fo+0FS0m; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fo+0FS0m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBFDBC4CEF7; Fri, 30 Jan 2026 08:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769760175; bh=KHF5TjZ/e33ZkPfoy50mXkJbNt8TNknTRTxCCMOgNSI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fo+0FS0m7Ubq0+XJmK+1Miv1yej/EMNa9zXuOvyeU2CiwT2oFT5fAKaUFiROT8wBc NxTrZLpvxKhRwNWCgsuVJxorHdlPdvWIzIr6dA1UUukXzXoPNABaX6yYTKWlzoaWCF yASHA3j0v9/ZE+zVUVXCZIhIPaJUWx2taaVUL0U7VtBhCqPYKHYChJX7YB0nz8+K/X 42e0ERIpNENyTDgXC3/a/mRTvnPyabNwswSkzz0UUOLvCbn8OT10rdfOx23u/fE7WH lILyWVMSgA10mcAnC+SrGNCrf+uHF6g1iyAjvqB0Sc9/WofZRN9SrrtTxxf0CxjhNe naasVNTSsvPUA== From: Allison Henderson To: netdev@vger.kernel.org Cc: linux-kselftest@vger.kernel.org, pabeni@redhat.com, edumazet@google.com, rds-devel@oss.oracle.com, kuba@kernel.org, horms@kernel.org, linux-rdma@vger.kernel.org, allison.henderson@oracle.com Subject: [PATCH net-next v3 4/8] net/rds: Kick-start TCP receiver after accept Date: Fri, 30 Jan 2026 01:02:46 -0700 Message-ID: <20260130080250.696575-5-achender@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260130080250.696575-1-achender@kernel.org> References: <20260130080250.696575-1-achender@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Gerd Rausch In cases where the server (the node with the higher IP-address) in an RDS/TCP connection is overwhelmed it is possible that the socket that was just accepted is chock-full of messages, up to the limit of what the socket receive buffer permits. Subsequently, "rds_tcp_data_ready" won't be called anymore, because there is no more space to receive additional messages. Nor was it called prior to the point of calling "rds_tcp_set_callbacks", because the "sk_data_ready" pointer didn't even point to "rds_tcp_data_ready" yet. We fix this by simply kick-starting the receive-worker for all cases where the socket state is neither "TCP_CLOSE_WAIT" nor "TCP_CLOSE". Signed-off-by: Gerd Rausch Signed-off-by: Allison Henderson --- net/rds/tcp_listen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c index ec54fc4a6901..c628f62421d4 100644 --- a/net/rds/tcp_listen.c +++ b/net/rds/tcp_listen.c @@ -291,6 +291,8 @@ int rds_tcp_accept_one(struct rds_tcp_net *rtn) new_sock->sk->sk_state == TCP_LAST_ACK || new_sock->sk->sk_state == TCP_CLOSE) rds_conn_path_drop(cp, 0); + else + queue_delayed_work(cp->cp_wq, &cp->cp_recv_w, 0); new_sock = NULL; ret = 0; -- 2.43.0