The following is a small patch to initialize the cache_list list_head while initializing a new lockres. --rusty Index: src/dlm.c ==================================================================--- src/dlm.c (revision 804) +++ src/dlm.c (working copy) @@ -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 */
On Mon, Mar 22, 2004 at 02:50:56PM -0800, Rusty Lynch wrote:> 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 mark.fasheh@oracle.com