Whamcloud - gitweb
LU-12542 handle: use hlist for hash lists.
[fs/lustre-release.git] / lustre / ldlm / ldlm_lock.c
index c2fd190..c918339 100644 (file)
@@ -489,7 +489,7 @@ static struct ldlm_lock *ldlm_lock_new(struct ldlm_resource *resource)
 
         lprocfs_counter_incr(ldlm_res_to_ns(resource)->ns_stats,
                              LDLM_NSS_LOCKS);
-       INIT_LIST_HEAD_RCU(&lock->l_handle.h_link);
+       INIT_HLIST_NODE(&lock->l_handle.h_link);
        class_handle_hash(&lock->l_handle, lock_handle_owner);
 
         lu_ref_init(&lock->l_reference);