]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dlm: fix uninitialized spinlock
authorDavid Teigland <teigland@redhat.com>
Thu, 2 Aug 2012 16:00:05 +0000 (11:00 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 8 Aug 2012 16:33:43 +0000 (11:33 -0500)
Use DEFINE_SPINLOCK for global dlm_cb_seq_spin.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/ast.c

index 63dc19c54d5a0dc567210d86b6b3a676934aa191..27a6ba9aaeec7e410c1002b72cd81c344c3d76ef 100644 (file)
@@ -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)
 {