From: Xue jiufei Date: Wed, 19 Jun 2013 00:05:38 +0000 (+1000) Subject: ocfs2: add missing dlm_put() in dlm_begin_reco_handler() X-Git-Tag: next-20130619~2^2~601 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0df823e0e630368865cf9693a614e5e12ee5ed7f;p=karo-tx-linux.git ocfs2: add missing dlm_put() in dlm_begin_reco_handler() dlm_begin_reco_handler() returns without putting dlm when dlm recovery state is DLM_RECO_STATE_FINALIZE. Signed-off-by: joyce Reviewed-by: Jie Liu Acked-by: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton --- diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 257bf90916ca..317c0d4024d8 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c @@ -2699,6 +2699,7 @@ int dlm_begin_reco_handler(struct o2net_msg *msg, u32 len, void *data, dlm->name, br->node_idx, br->dead_node, dlm->reco.dead_node, dlm->reco.new_master); spin_unlock(&dlm->spinlock); + dlm_put(dlm); return -EAGAIN; } spin_unlock(&dlm->spinlock);