Message ID | 71604351584F6A4EBAE558C676F37CA417BD79D5@H3CMLB02-EX.srv.huawei-3com.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- ocfs2-ko-3.2-compare/cluster/tcp.c 2012-10-29 19:33:19.534200000 +0800 +++ ocfs2-ko-3.2/cluster/tcp.c 2013-05-08 09:33:16.386277310 +0800 @@ -1699,6 +1698,10 @@ static void o2net_start_connect(struct w if (ret == -EINPROGRESS) ret = 0; + /** Reset the timeout with 0 to avoid connection again */ + if (ret == 0) { + atomic_set(&nn->nn_timeout, 0); + } out: if (ret) { printk(KERN_NOTICE "o2net: Connect attempt to " SC_NODEF_FMT @@ -1725,6 +1728,11 @@ static void o2net_connect_expired(struct