diff options
author | David Teigland <teigland@redhat.com> | 2006-07-12 16:44:04 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-13 09:25:34 -0400 |
commit | 597d0cae0f99f62501e229bed50e8149604015bb (patch) | |
tree | b6cab09ff6fe2246740848164c0a52d5c03136a0 /fs/dlm/ast.c | |
parent | 2eb168ca94aba3bcae350ad9b31870955174a218 (diff) | |
download | kernel-crypto-597d0cae0f99f62501e229bed50e8149604015bb.tar.gz kernel-crypto-597d0cae0f99f62501e229bed50e8149604015bb.tar.xz kernel-crypto-597d0cae0f99f62501e229bed50e8149604015bb.zip |
[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/ast.c')
-rw-r--r-- | fs/dlm/ast.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c index 57bdf09b520..a211330cbc4 100644 --- a/fs/dlm/ast.c +++ b/fs/dlm/ast.c @@ -13,7 +13,7 @@ #include "dlm_internal.h" #include "lock.h" -#include "ast.h" +#include "user.h" #define WAKE_ASTS 0 @@ -34,6 +34,11 @@ void dlm_del_ast(struct dlm_lkb *lkb) void dlm_add_ast(struct dlm_lkb *lkb, int type) { + if (lkb->lkb_flags & DLM_IFL_USER) { + dlm_user_add_ast(lkb, type); + return; + } + spin_lock(&ast_queue_lock); if (!(lkb->lkb_ast_type & (AST_COMP | AST_BAST))) { kref_get(&lkb->lkb_ref); |