]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/ocfs2/dlm/dlmlock.c
[PATCH] spin/rwlock init cleanups
[mirror_ubuntu-zesty-kernel.git] / fs / ocfs2 / dlm / dlmlock.c
index d6f89577e25f1b0ac55f5ac8e931013ff2b460ee..5ca57ec650c77657c76e82e66f83dea2180da01a 100644 (file)
@@ -53,7 +53,7 @@
 #define MLOG_MASK_PREFIX ML_DLM
 #include "cluster/masklog.h"
 
-static spinlock_t dlm_cookie_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(dlm_cookie_lock);
 static u64 dlm_next_cookie = 1;
 
 static enum dlm_status dlm_send_remote_lock_request(struct dlm_ctxt *dlm,