Skip to content

Commit

Permalink
dlm: fix uninitialized spinlock
Browse files Browse the repository at this point in the history
Use DEFINE_SPINLOCK for global dlm_cb_seq_spin.

Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
David Teigland committed Aug 8, 2012
1 parent 36b71a8 commit 6ad2291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/dlm/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6ad2291

Please sign in to comment.