diff options
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 57bdf09b520a..a211330cbc42 100644 --- a/fs/dlm/ast.c +++ b/fs/dlm/ast.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | #include "dlm_internal.h" | 14 | #include "dlm_internal.h" |
15 | #include "lock.h" | 15 | #include "lock.h" |
16 | #include "ast.h" | 16 | #include "user.h" |
17 | 17 | ||
18 | #define WAKE_ASTS 0 | 18 | #define WAKE_ASTS 0 |
19 | 19 | ||
@@ -34,6 +34,11 @@ void dlm_del_ast(struct dlm_lkb *lkb) | |||
34 | 34 | ||
35 | void dlm_add_ast(struct dlm_lkb *lkb, int type) | 35 | void dlm_add_ast(struct dlm_lkb *lkb, int type) |
36 | { | 36 | { |
37 | if (lkb->lkb_flags & DLM_IFL_USER) { | ||
38 | dlm_user_add_ast(lkb, type); | ||
39 | return; | ||
40 | } | ||
41 | |||
37 | spin_lock(&ast_queue_lock); | 42 | spin_lock(&ast_queue_lock); |
38 | if (!(lkb->lkb_ast_type & (AST_COMP | AST_BAST))) { | 43 | if (!(lkb->lkb_ast_type & (AST_COMP | AST_BAST))) { |
39 | kref_get(&lkb->lkb_ref); | 44 | kref_get(&lkb->lkb_ref); |