Skip to content
/ linux Public

Commit 391200c

Browse files
Hakon-BuggeSasha Levin
authored andcommitted
net/rds: Clear reconnect pending bit
[ Upstream commit b89fc7c ] When canceling the reconnect worker, care must be taken to reset the reconnect-pending bit. If the reconnect worker has not yet been scheduled before it is canceled, the reconnect-pending bit will stay on forever. Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com> Signed-off-by: Allison Henderson <allison.henderson@oracle.com> Link: https://patch.msgid.link/20260203055723.1085751-6-achender@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f713dcd commit 391200c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/rds/connection.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ void rds_conn_shutdown(struct rds_conn_path *cp)
428428
* to the conn hash, so we never trigger a reconnect on this
429429
* conn - the reconnect is always triggered by the active peer. */
430430
cancel_delayed_work_sync(&cp->cp_conn_w);
431+
432+
clear_bit(RDS_RECONNECT_PENDING, &cp->cp_flags);
431433
rcu_read_lock();
432434
if (!hlist_unhashed(&conn->c_hash_node)) {
433435
rcu_read_unlock();

0 commit comments

Comments
 (0)