[Ocfs2-commits] mfasheh commits r2054 - trunk/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Mar 25 14:09:40 CST 2005


Author: mfasheh
Signed-off-by: zab
Date: 2005-03-25 14:09:38 -0600 (Fri, 25 Mar 2005)
New Revision: 2054

Modified:
   trunk/fs/ocfs2/cluster/tcp.c
Log:
* use list_for_each_safe when deleting list items

Signed-off-by: zab



Modified: trunk/fs/ocfs2/cluster/tcp.c
===================================================================
--- trunk/fs/ocfs2/cluster/tcp.c	2005-03-25 18:52:23 UTC (rev 2053)
+++ trunk/fs/ocfs2/cluster/tcp.c	2005-03-25 20:09:38 UTC (rev 2054)
@@ -959,10 +959,10 @@
 {
 	unsigned int num_kills = 0;
 	net_status_ctxt *nsc = NULL;
-	struct list_head *iter;
+	struct list_head *iter, *tmp;
 
 	spin_lock(&net_status_lock);
-	list_for_each(iter, &net_status_list) {
+	list_for_each_safe(iter, tmp, &net_status_list) {
 		nsc = list_entry(iter, net_status_ctxt, list);
 		if (nsc->target_node == node) {
 			nsc->sys_status = NET_ERR_DIED;



More information about the Ocfs2-commits mailing list