Initialize lockres->cache_list
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
@@ -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 */
Quoted 2 lines · Rusty Lynch
The following is a small patch to initialize the
cache_listlist_headwhile 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]