]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit53ecd25e148615e0ed2a72635cc76f4773f97f90
treead4f26d160889792c72199678634b4132c5ce1d7
parentdabc47de7a23f57522dc762d9d2ad875700d3497
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