aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmdomain.c
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2009-02-26 18:00:43 -0500
committerMark Fasheh <mfasheh@suse.com>2009-04-03 14:39:21 -0400
commit2041d8fdcec7603401829f60810c1dbd5e96c043 (patch)
treeb11697962ccdec9556e66e6c261ecff33d1fb468 /fs/ocfs2/dlm/dlmdomain.c
parent67ae1f0604da3bcf3ed6dec59ac71d07e54a404c (diff)
ocfs2/dlm: Track number of mles
The lifetime of a mle is limited to the duration of the lockres mastery process. While typically this lifetime is fairly short, we have noticed the number of mles explode under certain circumstances. This patch tracks the number of each different types of mles and should help us determine how best to speed up the mastery process. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmdomain.c')
-rw-r--r--fs/ocfs2/dlm/dlmdomain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index 869648c6104..0479bdf91c2 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -1608,6 +1608,11 @@ static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain,
1608 atomic_set(&dlm->remote_resources, 0); 1608 atomic_set(&dlm->remote_resources, 0);
1609 atomic_set(&dlm->unknown_resources, 0); 1609 atomic_set(&dlm->unknown_resources, 0);
1610 1610
1611 for (i = 0; i < DLM_MLE_NUM_TYPES; ++i) {
1612 atomic_set(&dlm->mle_tot_count[i], 0);
1613 atomic_set(&dlm->mle_cur_count[i], 0);
1614 }
1615
1611 spin_lock_init(&dlm->work_lock); 1616 spin_lock_init(&dlm->work_lock);
1612 INIT_LIST_HEAD(&dlm->work_list); 1617 INIT_LIST_HEAD(&dlm->work_list);
1613 INIT_WORK(&dlm->dispatched_work, dlm_dispatch_work); 1618 INIT_WORK(&dlm->dispatched_work, dlm_dispatch_work);