diff options
Diffstat (limited to 'fs/ocfs2/cluster')
| -rw-r--r-- | fs/ocfs2/cluster/tcp.c | 3 | ||||
| -rw-r--r-- | fs/ocfs2/cluster/tcp_internal.h | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index 2e355e0f8335..56c403a563bc 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c | |||
| @@ -1016,7 +1016,8 @@ void o2net_fill_node_map(unsigned long *map, unsigned bytes) | |||
| 1016 | 1016 | ||
| 1017 | memset(map, 0, bytes); | 1017 | memset(map, 0, bytes); |
| 1018 | for (node = 0; node < O2NM_MAX_NODES; ++node) { | 1018 | for (node = 0; node < O2NM_MAX_NODES; ++node) { |
| 1019 | o2net_tx_can_proceed(o2net_nn_from_num(node), &sc, &ret); | 1019 | if (!o2net_tx_can_proceed(o2net_nn_from_num(node), &sc, &ret)) |
| 1020 | continue; | ||
| 1020 | if (!ret) { | 1021 | if (!ret) { |
| 1021 | set_bit(node, map); | 1022 | set_bit(node, map); |
| 1022 | sc_put(sc); | 1023 | sc_put(sc); |
diff --git a/fs/ocfs2/cluster/tcp_internal.h b/fs/ocfs2/cluster/tcp_internal.h index dc024367110a..b95e7df5b76a 100644 --- a/fs/ocfs2/cluster/tcp_internal.h +++ b/fs/ocfs2/cluster/tcp_internal.h | |||
| @@ -107,12 +107,12 @@ struct o2net_node { | |||
| 107 | struct list_head nn_status_list; | 107 | struct list_head nn_status_list; |
| 108 | 108 | ||
| 109 | /* connects are attempted from when heartbeat comes up until either hb | 109 | /* connects are attempted from when heartbeat comes up until either hb |
| 110 | * goes down, the node is unconfigured, no connect attempts succeed | 110 | * goes down, the node is unconfigured, or a connect succeeds. |
| 111 | * before O2NET_CONN_IDLE_DELAY, or a connect succeeds. connect_work | 111 | * connect_work is queued from set_nn_state both from hb up and from |
| 112 | * is queued from set_nn_state both from hb up and from itself if a | 112 | * itself if a connect attempt fails and so can be self-arming. |
| 113 | * connect attempt fails and so can be self-arming. shutdown is | 113 | * shutdown is careful to first mark the nn such that no connects will |
| 114 | * careful to first mark the nn such that no connects will be attempted | 114 | * be attempted before canceling delayed connect work and flushing the |
| 115 | * before canceling delayed connect work and flushing the queue. */ | 115 | * queue. */ |
| 116 | struct delayed_work nn_connect_work; | 116 | struct delayed_work nn_connect_work; |
| 117 | unsigned long nn_last_connect_attempt; | 117 | unsigned long nn_last_connect_attempt; |
| 118 | 118 | ||
