projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9801d
)
ocfs2: quorum: add a log for node not fenced
author
Junxiao Bi
<
[email protected]
>
Fri, 29 Aug 2014 22:19:04 +0000
(15:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 29 Aug 2014 23:28:17 +0000
(16:28 -0700)
For debug use, we can see from the log whether the fence decision is
made and why it is not fenced.
Signed-off-by: Junxiao Bi <
[email protected]
>
Reviewed-by: Srinivas Eeda <
[email protected]
>
Reviewed-by: Mark Fasheh <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Cc: Joseph Qi <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ocfs2/cluster/quorum.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/cluster/quorum.c
b/fs/ocfs2/cluster/quorum.c
index 1ec141e758d73497288f35a13f4e7a965f381a30..62e8ec619b4ce54f6509fcfa2f33cfc381f4fd5e 100644
(file)
--- a/
fs/ocfs2/cluster/quorum.c
+++ b/
fs/ocfs2/cluster/quorum.c
@@
-160,9
+160,18
@@
static void o2quo_make_decision(struct work_struct *work)
}
out:
- spin_unlock(&qs->qs_lock);
- if (fence)
+ if (fence) {
+ spin_unlock(&qs->qs_lock);
o2quo_fence_self();
+ } else {
+ mlog(ML_NOTICE, "not fencing this node, heartbeating: %d, "
+ "connected: %d, lowest: %d (%sreachable)\n",
+ qs->qs_heartbeating, qs->qs_connected, lowest_hb,
+ lowest_reachable ? "" : "un");
+ spin_unlock(&qs->qs_lock);
+
+ }
+
}
static void o2quo_set_hold(struct o2quo_state *qs, u8 node)