浏览代码

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: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Marcelo Ricardo Leitner 10 年之前
父节点
当前提交
356344c4c3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/dlm/lowcomms.c

+ 1 - 0
fs/dlm/lowcomms.c

@@ -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;
 	}