From: David Teigland Date: Thu, 2 Aug 2012 16:00:05 +0000 (-0500) Subject: dlm: fix uninitialized spinlock X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6ad2291624824c1de19dbbbbb6d4f9f601b60781;p=linux-beck.git dlm: fix uninitialized spinlock Use DEFINE_SPINLOCK for global dlm_cb_seq_spin. Signed-off-by: David Teigland --- diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c index 63dc19c54d5a..27a6ba9aaeec 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) {