ocfs2/dlm: get mle inuse only when it is initialized
authorChangwei Ge <[email protected]>
Thu, 16 Nov 2017 01:31:52 +0000 (17:31 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:01 +0000 (18:21 -0800)
commit3db409fa24f6dbeb60211dd829954102845c4e82
treed7229537a1532d5b8f6024be7d0c00f4597b95a1
parent853bc26a7ea39e354b9f8889ae7ad1492ffa28d2
ocfs2/dlm: get mle inuse only when it is initialized

When dlm_add_migration_mle returns -EEXIST, previously input mle will
not be initialized.  So we can't use its associated dlm object.  And we
truly don't need this mle for already launched migration progress, since
oldmle has taken this role.

Link: http://lkml.kernel.org/r/63ADC13FD55D6546B7DECE290D39E373CED7AA61@H3CMLB14-EX.srv.huawei-3com.com
Signed-off-by: Changwei Ge <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/dlm/dlmmaster.c