summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
authorxuejiufei <xuejiufei@huawei.com>2016-03-15 14:53:17 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-15 16:55:16 -0700
commitd277f33eda000ca03b1497fcf1c9e2ec33adf4c6 (patch)
treed870e8e541e9cb6ddd5ed33bedccaa31e5e5e29f /fs/ocfs2/dlm/dlmcommon.h
parent8c0343968163dc3536e56268026f475b1bbf61b4 (diff)
downloadlinux-d277f33eda000ca03b1497fcf1c9e2ec33adf4c6.tar.gz
linux-d277f33eda000ca03b1497fcf1c9e2ec33adf4c6.tar.bz2
linux-d277f33eda000ca03b1497fcf1c9e2ec33adf4c6.zip
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>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
0 files changed, 0 insertions, 0 deletions