Whamcloud - gitweb
LU-1896 tests: check Lustre version in sanity test 154
[fs/lustre-release.git] / lustre / obdclass / capa.c
index b121449..4fc3fff 100644 (file)
@@ -65,7 +65,7 @@ cfs_mem_cache_t *capa_cachep = NULL;
 
 #ifdef __KERNEL__
 /* lock for capa hash/capa_list/fo_capa_keys */
-cfs_spinlock_t capa_lock = CFS_SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(capa_lock);
 
 cfs_list_t capa_list[CAPA_SITE_MAX];