Commit 356344c4 authored by Marcelo Ricardo Leitner's avatar Marcelo Ricardo Leitner Committed by David Teigland

dlm: fix not reconnecting on connecting error handling

If we don't clear that bit, lowcomms_connect_sock() will not schedule
another attempt, and no further attempt will be done.
Signed-off-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 0d737a8c
...@@ -1253,6 +1253,7 @@ static void tcp_connect_to_sock(struct connection *con) ...@@ -1253,6 +1253,7 @@ static void tcp_connect_to_sock(struct connection *con)
con->retries, result); con->retries, result);
mutex_unlock(&con->sock_mutex); mutex_unlock(&con->sock_mutex);
msleep(1000); msleep(1000);
clear_bit(CF_CONNECT_PENDING, &con->flags);
lowcomms_connect_sock(con); lowcomms_connect_sock(con);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment