]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: return EINVAL when the lockres on migration target is in DROPPING_REF...
authorxuejiufei <xuejiufei@huawei.com>
Tue, 15 Mar 2016 21:53:17 +0000 (14:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit75ff47650d746deb3b04efc3ffcfaedc72f25bbc
treed870e8e541e9cb6ddd5ed33bedccaa31e5e5e29f
parentf68166adb397d08ee81e7d46204da1ca20a72738
ocfs2/dlm: return EINVAL when the lockres on migration target is in DROPPING_REF state

If master migrate this lock resource to node when it happened to purge
it, a new lock resource will be created and inserted into hash list.  If
then master goes down, the lock resource being purged is recovered, so
there exist two lock resource with different owner.  So return error to
master if the lock resource is in DROPPING state, master will retry to
migrate this lock resource.

Signed-off-by: xuejiufei <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c