diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2009-02-26 18:00:41 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-03 14:39:19 -0400 |
commit | 2ed6c750d645d09b5948e46fada3ca1fda3157b5 (patch) | |
tree | 47d2a6b7d3f6407312f9857abdaf114f14223286 /fs/ocfs2/dlm/dlmdomain.c | |
parent | e2b66ddcce922529e058cf74d839c4c49c8379a1 (diff) |
ocfs2/dlm: Activate dlm->master_hash for master list entries
With this patch, the mles are stored in a hash and not a simple list.
This should improve the mle lookup time when the number of outstanding
masteries is large.
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c index 45315046daf5..869648c61041 100644 --- a/fs/ocfs2/dlm/dlmdomain.c +++ b/fs/ocfs2/dlm/dlmdomain.c | |||
@@ -1597,7 +1597,6 @@ static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain, | |||
1597 | init_waitqueue_head(&dlm->reco.event); | 1597 | init_waitqueue_head(&dlm->reco.event); |
1598 | init_waitqueue_head(&dlm->ast_wq); | 1598 | init_waitqueue_head(&dlm->ast_wq); |
1599 | init_waitqueue_head(&dlm->migration_wq); | 1599 | init_waitqueue_head(&dlm->migration_wq); |
1600 | INIT_LIST_HEAD(&dlm->master_list); | ||
1601 | INIT_LIST_HEAD(&dlm->mle_hb_events); | 1600 | INIT_LIST_HEAD(&dlm->mle_hb_events); |
1602 | 1601 | ||
1603 | dlm->joining_node = DLM_LOCK_RES_OWNER_UNKNOWN; | 1602 | dlm->joining_node = DLM_LOCK_RES_OWNER_UNKNOWN; |