[SSI] openssi/kernel/include/cluster/ssi load_level.h, 1.10, 1.11 ssidev.h, 1.13, 1.14

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

Modified Files:
      Tag: OPENSSI-FC
	load_level.h ssidev.h 
Log Message:
Bug fixes and enhancements (see ChangeLog)


Index: load_level.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/load_level.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- load_level.h	3 Feb 2009 06:18:13 -0000	1.10
+++ load_level.h	24 Mar 2009 04:26:29 -0000	1.11
@@ -92,6 +92,9 @@
 
 #define LOADLIST_UNLOCK_SHARED() \
 	UNLOCK_SHR_RW_LOCK(&loadlevellist_lock)
+
+#define TRY_LOADLIST_LOCK_SHARED() \
+	TRY_LOCK_SHR_RW_LOCK(&loadlevellist_lock)
 #else /* !LOADLEVEL_TABLE_LIST */
 #define LOADLIST_LOCK_INIT() \
 	INIT_LOCK(&loadlevellist_lock)

Index: ssidev.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/ssidev.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- ssidev.h	3 Feb 2009 06:18:13 -0000	1.13
+++ ssidev.h	24 Mar 2009 04:26:29 -0000	1.14
@@ -86,13 +86,14 @@
 
 typedef struct {
 	struct list_head	pc_list;
-#ifdef RCU_SSIDEV_POLL_CLI_LIST
-	struct rcu_head		pc_rcu;
-	SPIN_LOCK_T		pc_spinlock;
-#endif
 	struct task_struct	*pc_proc;
 	unsigned int		pc_events;
+#ifdef RCU_SSIDEV_POLL_CLI_LIST
+	unsigned long		pc_state; /* always use atomic bitops on this */
+	struct rcu_head		pc_rcu;
+#else
 	int			pc_wakeup;
+#endif
 	int			(*pc_retfunc)(ssidev_pollfd_t *);
 	ssidev_poll_node_t	*pc_node[NSC_MAX_NODE_VALUE];
 } ssidev_poll_cli_t;


------------------------------------------------------------------------------
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.