]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: Add new dlm message DLM_BEGIN_EXIT_DOMAIN_MSG
authorSunil Mushran <sunil.mushran@oracle.com>
Thu, 19 May 2011 21:34:11 +0000 (14:34 -0700)
committerJoel Becker <jlbec@evilplan.org>
Thu, 26 May 2011 04:05:15 +0000 (21:05 -0700)
commit5acdb0b2bc4907dda43cc6bfb6abe847873e50fb
treeec3a61ccfd5bba4d5fba55b6aa9844d3dfa25d78
parentc2a1082d77a37c0f78bc1ec26213a242f355a542
ocfs2/dlm: Add new dlm message DLM_BEGIN_EXIT_DOMAIN_MSG

This patch adds a new dlm message DLM_BEGIN_EXIT_DOMAIN_MSG and ups the dlm
protocol to 1.2.

o2dlm sends this new message in dlm_unregister_domain() to mark the beginning
of the exit domain. This message is sent to all nodes in the domain.

Currently o2dlm has no way of informing other nodes of its impending exit.
This information is useful as the other nodes could disregard the exiting
node in certain operations. For example, in resource migration. If two or
more nodes were umounting in parallel, it would be more efficient if o2dlm
were to choose a non-exiting node to be the new master node rather than an
exiting one.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/dlm/dlmcommon.h
fs/ocfs2/dlm/dlmdebug.c
fs/ocfs2/dlm/dlmdomain.c
fs/ocfs2/dlm/dlmrecovery.c