[SSI] openssi/kernel/cluster/ssi/ipc rmtunix.c,1.26,1.27

Roger Tsang <[email protected]>
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/ipc
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29491/cluster/ssi/ipc

Modified Files:
      Tag: OPENSSI-FC
	rmtunix.c 
Log Message:
Bug fixes and enhancements (see ChangeLog)


Index: rmtunix.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/ipc/rmtunix.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- rmtunix.c	19 Feb 2009 08:01:02 -0000	1.26
+++ rmtunix.c	24 Mar 2009 04:26:28 -0000	1.27
@@ -114,20 +114,18 @@
 void
 rmtunix_nodedown(clusternode_t node)
 {
-	struct list_head *cur, *next;
 #ifdef RCU_RMTUNIX_CACHE
-	might_sleep();
+	struct rmtunix_socket_info *info;
 
 	rcu_read_lock();
-	list_for_each_safe_rcu(cur, next, &rmtunix_cache_list) {
-		struct rmtunix_socket_info *info = list_entry(cur,
-				struct rmtunix_socket_info, list);
+	list_for_each_entry_rcu(info, &rmtunix_cache_list, list) {
 		if (info->node != node)
 			continue;
 		__rmtunix_decache_info(info);
 	}
 	rcu_read_unlock();
 #else /* !RCU_RMTUNIX_CACHE */
+	struct list_head *cur, *next;
 	LIST_HEAD(list);
 
 	spin_lock(&rmtunix_cache_listlock);


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.