Skip to content

Commit 4da6dc2

Browse files
Sunil Mushranjlbec
authored andcommitted
ocfs2/dlm: Use negotiated o2dlm protocol version
Patch fixes a bug in the o2dlm protocol negotiation in that it is using the builtin version rather than the negotiated version during the domain join. This causes join errors when a node having kernel >= 2.6.37 joins a cluster with nodes having kernels < 2.6.37. This only affects the o2cb cluster stack. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Reported-by: Jacek Stepniewski <Jacek.Stepniewski@agora.pl> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <jlbec@evilplan.org>
1 parent 9a790ba commit 4da6dc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/ocfs2/dlm/dlmdomain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,8 @@ static int dlm_try_to_join_domain(struct dlm_ctxt *dlm)
16141614
spin_unlock(&dlm->spinlock);
16151615

16161616
/* Support for global heartbeat and node info was added in 1.1 */
1617-
if (dlm_protocol.pv_major > 1 || dlm_protocol.pv_minor > 0) {
1617+
if (dlm->dlm_locking_proto.pv_major > 1 ||
1618+
dlm->dlm_locking_proto.pv_minor > 0) {
16181619
status = dlm_send_nodeinfo(dlm, ctxt->yes_resp_map);
16191620
if (status) {
16201621
mlog_errno(status);

0 commit comments

Comments
 (0)