diff options
author | David Teigland <teigland@redhat.com> | 2006-07-12 17:44:04 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-13 09:25:34 -0400 |
commit | 597d0cae0f99f62501e229bed50e8149604015bb (patch) | |
tree | b6cab09ff6fe2246740848164c0a52d5c03136a0 /fs/dlm/memory.c | |
parent | 2eb168ca94aba3bcae350ad9b31870955174a218 (diff) |
[DLM] dlm: user locks
This changes the way the dlm handles user locks. The core dlm is now
aware of user locks so they can be dealt with more efficiently. There is
no more dlm_device module which previously managed its own duplicate copy
of every user lock.
Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/memory.c')
-rw-r--r-- | fs/dlm/memory.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c index f7cf4589fae8..48dfc27861f4 100644 --- a/fs/dlm/memory.c +++ b/fs/dlm/memory.c | |||
@@ -84,6 +84,15 @@ struct dlm_lkb *allocate_lkb(struct dlm_ls *ls) | |||
84 | 84 | ||
85 | void free_lkb(struct dlm_lkb *lkb) | 85 | void free_lkb(struct dlm_lkb *lkb) |
86 | { | 86 | { |
87 | if (lkb->lkb_flags & DLM_IFL_USER) { | ||
88 | struct dlm_user_args *ua; | ||
89 | ua = (struct dlm_user_args *)lkb->lkb_astparam; | ||
90 | if (ua) { | ||
91 | if (ua->lksb.sb_lvbptr) | ||
92 | kfree(ua->lksb.sb_lvbptr); | ||
93 | kfree(ua); | ||
94 | } | ||
95 | } | ||
87 | kmem_cache_free(lkb_cache, lkb); | 96 | kmem_cache_free(lkb_cache, lkb); |
88 | } | 97 | } |
89 | 98 | ||