]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ocfs2: add missing dlm_put() in dlm_begin_reco_handler()
authorXue jiufei <xuejiufei@huawei.com>
Wed, 19 Jun 2013 00:05:38 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:48 +0000 (17:12 +1000)
dlm_begin_reco_handler() returns without putting dlm when dlm recovery
state is DLM_RECO_STATE_FINALIZE.

Signed-off-by: joyce <xuejiufei@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c

index 257bf90916ca1fb710648b18e131595b0cbed1e5..317c0d4024d823d383318170195c556d86cb5542 100644 (file)
@@ -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);