commit | 6ad2291624824c1de19dbbbbb6d4f9f601b60781 | [log] [tgz] |
---|---|---|
author | David Teigland <teigland@redhat.com> | Thu Aug 02 11:00:05 2012 -0500 |
committer | David Teigland <teigland@redhat.com> | Wed Aug 08 11:33:43 2012 -0500 |
tree | 0c2f7a0195c868cd071396491cae51f1b8035846 | |
parent | 36b71a8bfbc92e1ba164e9aec840c0180ee933b5 [diff] [blame] |
dlm: fix uninitialized spinlock Use DEFINE_SPINLOCK for global dlm_cb_seq_spin. Signed-off-by: David Teigland <teigland@redhat.com>
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c index 63dc19c..27a6ba9 100644 --- a/fs/dlm/ast.c +++ b/fs/dlm/ast.c
@@ -15,8 +15,8 @@ #include "lock.h" #include "user.h" -static uint64_t dlm_cb_seq; -static spinlock_t dlm_cb_seq_spin; +static uint64_t dlm_cb_seq; +static DEFINE_SPINLOCK(dlm_cb_seq_spin); static void dlm_dump_lkb_callbacks(struct dlm_lkb *lkb) {