Skip to content

Commit

Permalink
dlm: fix not reconnecting on connecting error handling
Browse files Browse the repository at this point in the history
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: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Marcelo Ricardo Leitner authored and David Teigland committed Aug 17, 2015
1 parent 0d737a8 commit 356344c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,7 @@ static void tcp_connect_to_sock(struct connection *con)
con->retries, result);
mutex_unlock(&con->sock_mutex);
msleep(1000);
clear_bit(CF_CONNECT_PENDING, &con->flags);
lowcomms_connect_sock(con);
return;
}
Expand Down

0 comments on commit 356344c

Please sign in to comment.