]> git.baikalelectronics.ru Git - kernel.git/commit
o2dlm: force free mles during dlm exit
authorSrinivas Eeda <srinivas.eeda@oracle.com>
Tue, 21 Sep 2010 23:27:26 +0000 (16:27 -0700)
committerJoel Becker <joel.becker@oracle.com>
Thu, 23 Sep 2010 21:16:53 +0000 (14:16 -0700)
commit3192f86da2c4596348ac8c526d8de24a430acc42
tree4e2f118c66f65746dec2c04ab2b792100b6b0e36
parent1ede54d105dce2f1317e3c81875c42fd7b5f17aa
o2dlm: force free mles during dlm exit

While umounting, a block mle doesn't get freed if dlm is shutdown after
master request is received but before assert master. This results in unclean
shutdown of dlm domain.

This patch frees all mles that lie around after other nodes were notified about
exiting the dlm and marking dlm state as leaving. Only block mles are expected
to be around, so we log ERROR for other mles but still free them.

Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlm/dlmcommon.h
fs/ocfs2/dlm/dlmdomain.c
fs/ocfs2/dlm/dlmmaster.c