Skip to contentSkip to conversation

Initialize lockres->cache_list

PATCH In review Rusty Lynch 2 participants 2 messages Mar 22, 2004 – Mar 24, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Initialize lockres->cache_list

The following is a small patch to initialize the cache_list list_head while initializing a new lockres.

    --rusty
dlm.c +2 -0
Index: src/dlm.c
===================================================================
@@ -1056,6 +1056,8 @@
 	lockres->lock_holders = 0;
 	LOG_TRACE_ARGS("lockres->lock_holders = %u\n", lockres->lock_holders);
 
+	INIT_LIST_HEAD(&lockres->cache_list);
+
 	LOG_EXIT ();
 	return;
 }				/* ocfs_init_lockres */
#1 lore raw
Quoted 2 lines · Rusty Lynch

The following is a small patch to initialize the cache_list list_head while initializing a new lockres.

Alright, committed. I guess this means we can now rely on list_empty if we ever need to test the contents of cache_list.

	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]