]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2/dlm: do not insert a new mle when another process is already migrating
authorxuejiufei <xuejiufei@huawei.com>
Thu, 14 Jan 2016 23:17:41 +0000 (15:17 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 26 Nov 2016 23:43:25 +0000 (15:43 -0800)
commitd8c43cb23bbb34bc6fe8df4413b4c138d959d5ad
tree402474578f0e2f30e83ca84f63431845ed978b4e
parentf05b91daa299ac84fec04c061fcb362fa081c294
ocfs2/dlm: do not insert a new mle when another process is already migrating

When two processes are migrating the same lockres,
dlm_add_migration_mle() return -EEXIST, but insert a new mle in hash
list.  dlm_migrate_lockres() will detach the old mle and free the new
one which is already in hash list, that will destroy the list.

Signed-off-by: Jiufei Xue <xuejiufei@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 32e493265b2be96404aaa478fb2913be29b06887)

Orabug: 24939243

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
fs/ocfs2/dlm/dlmmaster.c