From: johann Date: Wed, 27 May 2009 23:05:02 +0000 (+0000) Subject: Branch b_release_1_8_1 X-Git-Tag: v1_8_0_123~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d275cd68f24c494d8c18069a8028398a5a4135e1;p=fs%2Flustre-release.git Branch b_release_1_8_1 b=19674 quiet compiler warning due to rcu. --- diff --git a/lustre/obdclass/lustre_handles.c b/lustre/obdclass/lustre_handles.c index e830330..43b0125 100644 --- a/lustre/obdclass/lustre_handles.c +++ b/lustre/obdclass/lustre_handles.c @@ -232,11 +232,12 @@ static void cleanup_all_handles(void) int i; for (i = 0; i < HANDLE_HASH_SIZE; i++) { - struct list_head *tmp, *pos; + struct list_head *pos, *n; + n = NULL; spin_lock(&handle_hash[i].lock); - list_for_each_safe_rcu(tmp, pos, &(handle_hash[i].head)) { + list_for_each_safe_rcu(pos, n, &(handle_hash[i].head)) { struct portals_handle *h; - h = list_entry(tmp, struct portals_handle, h_link); + h = list_entry(pos, struct portals_handle, h_link); CERROR("force clean handle "LPX64" addr %p addref %p\n", h->h_cookie, h, h->h_addref);