[SSI] openssi/kernel/include/net af_unix.h,1.7,1.8

Roger Tsang <[email protected]> Sun, 08 Aug 2010 02:27:12 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/include/net
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv3340/include/net

Modified Files:
      Tag: OPENSSI-FC
	af_unix.h 
Log Message:
IPC (UNIX domain sockets):
- Implement lockless unixnm_svr_table list traversal. Reduce connect(), sendmsg() contention with bind(), connect(), sendmsg().
- ssi_unix_deregister() do O(1) lookup. Remove release() contention with bind() and various paths with unix_table_lock.
- unixnm_put() do O(1) lookup. Reduce release() contention with bind(), connect(), sendmsg().
- Allocate unixnm_svr_entry and unixnm_cache_entry structures from the Linux slab cache.

 cluster/ssi/ipc/unixnm.c         |  350 ++++++++++++++++++-------------
 include/cluster/ssi/unix.h       |   27 --
 include/net/af_unix.h            |    5 
 net/unix/af_unix.c               |    1 


Index: af_unix.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/net/af_unix.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- af_unix.h	27 Oct 2009 03:18:30 -0000	1.7
+++ af_unix.h	8 Aug 2010 02:27:10 -0000	1.8
@@ -64,12 +64,12 @@
 #define unix_state_wlock(s)	down_write(&unix_sk(s)->lock)
 #define unix_state_wunlock(s)	up_write(&unix_sk(s)->lock)
 
-#else
+#else /* CONFIG_SSI */
 #define unix_state_rlock(s)	read_lock(&unix_sk(s)->lock)
 #define unix_state_runlock(s)	read_unlock(&unix_sk(s)->lock)
 #define unix_state_wlock(s)	write_lock(&unix_sk(s)->lock)
 #define unix_state_wunlock(s)	write_unlock(&unix_sk(s)->lock)
-#endif /* CONFIG_SSI */
+#endif /* !CONFIG_SSI */
 
 #ifdef __KERNEL__
 /* The AF_UNIX socket */
@@ -85,6 +85,7 @@
         struct sock		*gc_tree;
         atomic_t                inflight;
 #ifdef CONFIG_SSI
+	void			*ssi_unixnm_entry;
         struct rw_semaphore     lock;
 #else
         rwlock_t                lock;


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev