]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ocfs2/cluster/heartbeat.c
[PATCH] spin/rwlock init cleanups
[net-next-2.6.git] / fs / ocfs2 / cluster / heartbeat.c
index 21f38accd0399dd26f6fa1da70af16209c01469e..1d26cfcd9f8406a531ab8acd61a5c813633658a8 100644 (file)
@@ -54,7 +54,7 @@ static DECLARE_RWSEM(o2hb_callback_sem);
  * multiple hb threads are watching multiple regions.  A node is live
  * whenever any of the threads sees activity from the node in its region.
  */
-static spinlock_t o2hb_live_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(o2hb_live_lock);
 static struct list_head o2hb_live_slots[O2NM_MAX_NODES];
 static unsigned long o2hb_live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
 static LIST_HEAD(o2hb_node_events);