projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b71a8
)
dlm: fix uninitialized spinlock
author
David Teigland
<teigland@redhat.com>
Thu, 2 Aug 2012 16:00:05 +0000
(11:00 -0500)
committer
David 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
patch
|
blob
|
history
diff --git
a/fs/dlm/ast.c
b/fs/dlm/ast.c
index 63dc19c54d5a0dc567210d86b6b3a676934aa191..27a6ba9aaeec7e410c1002b72cd81c344c3d76ef 100644
(file)
--- 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)
{