dlm: fix not reconnecting on connecting error handling
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 11 Aug 2015 22:22:22 +0000 (19:22 -0300)
committerDavid Teigland <teigland@redhat.com>
Mon, 17 Aug 2015 21:22:19 +0000 (16:22 -0500)
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>
fs/dlm/lowcomms.c

index 749deb3..54a0031 100644 (file)
@@ -1253,6 +1253,7 @@ out_err:
                          con->retries, result);
                mutex_unlock(&con->sock_mutex);
                msleep(1000);
+               clear_bit(CF_CONNECT_PENDING, &con->flags);
                lowcomms_connect_sock(con);
                return;
        }