]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit137aa29f3bc1be846705ba1a1292da43aaf219c7
treea2cdd4bbd5c06207c614a2ce8e9234bb7bcfdb7e
parent79a65549c4dbc514fd24d4341454c6fa249235a4
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>
fs/ocfs2/dlm/dlmmaster.c