From: alex chen Date: Thu, 2 Oct 2014 23:16:55 +0000 (-0700) Subject: ocfs2/dlm: should put mle when goto kill in dlm_assert_master_handler X-Git-Tag: submit/tizen/20160607.132125~3839^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55dacd22dba7da4d4f2ccd646cd77886e2c90dd1;p=sdk%2Femulator%2Femulator-kernel.git ocfs2/dlm: should put mle when goto kill in dlm_assert_master_handler In dlm_assert_master_handler, the mle is get in dlm_find_mle, should be put when goto kill, otherwise, this mle will never be released. Signed-off-by: Alex Chen Reviewed-by: Joseph Qi Reviewed-by: joyce.xue Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index e3cfa02..12ba682 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c @@ -2039,6 +2039,10 @@ kill: "and killing the other node now! This node is OK and can continue.\n"); __dlm_print_one_lock_resource(res); spin_unlock(&res->spinlock); + spin_lock(&dlm->master_lock); + if (mle) + __dlm_put_mle(mle); + spin_unlock(&dlm->master_lock); spin_unlock(&dlm->spinlock); *ret_data = (void *)res; dlm_put(dlm);