]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: Make dlm_assert_master_handler() kill itself instead of the asserter
authorSunil Mushran <sunil.mushran@oracle.com>
Tue, 3 Feb 2009 20:37:16 +0000 (12:37 -0800)
committerMark Fasheh <mfasheh@suse.com>
Thu, 26 Feb 2009 19:51:11 +0000 (11:51 -0800)
commitd102a1fdb870349b99db0d75489f6867e4089905
treead4f26d160889792c72199678634b4132c5ce1d7
parenteea25869900097831145da9d3193e75d6dd4db65
ocfs2/dlm: Make dlm_assert_master_handler() kill itself instead of the asserter

In dlm_assert_master_handler(), if we get an incorrect assert master from a node
that, we reply with EINVAL asking the asserter to die. The problem is that an
assert is sent after so many hoops, it is invariably the node that thinks the
asserter is wrong, is actually wrong. So instead of killing the asserter, this
patch kills the assertee.

This patch papers over a race that is still being addressed.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlm/dlmmaster.c