[SSI] openssi/kernel/cluster/ssi/ipc rmtunix.c,1.23,1.24
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-serv14118/cluster/ssi/ipc
Modified Files:
Tag: OPENSSI-FC
rmtunix.c
Log Message:
CFS:
- Allocate file_lock structure from stack in cfs_proc_set/getlock_0(), cfs_rb_dolocks().
- Fix possible busy spin forever in cfs_rb_dolocks(); need error handling.
- Optimize away early malloc in svrtok_lookup(). (#ifdef RCU_CFSTOK_TABLE)
IPC:
- Regression:
- Partially initialized rmtunix_socket_info structure. (#ifdef RMTUNIX_SOCK_INFO_CACHE)
VPROC:
- Regression:
- pvpop_reclaim_child() livelock in __ptrace_unlink path. (#ifdef VPROC_RW_LOCK)
cluster/ssi/cfs/cfs_ipcshm.c | 4 -
cluster/ssi/cfs/cfsproc.c | 90 +++++++++++++++++----------------------
cluster/ssi/cfs/svrcfs.c | 24 +++-------
cluster/ssi/ipc/rmtunix.c | 8 +--
cluster/ssi/vproc/dvp_pvpops.c | 10 ++--
include/cluster/ssi/ipc/unixnm.h | 9 ++-
include/cluster/ssi/unix.h | 6 +-
7 files changed, 69 insertions(+), 82 deletions(-)
Index: rmtunix.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/ipc/rmtunix.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- rmtunix.c 3 Feb 2009 06:18:12 -0000 1.23
+++ rmtunix.c 7 Feb 2009 04:19:43 -0000 1.24
@@ -90,6 +90,7 @@
info->sk = NULL;
#ifdef IPC_STALE_RMTUNIX_CACHE_FIX
}
+ DEINIT_SPIN_LOCK(&info->rsk_spinlock);
#endif
info->magic = 0;
#ifdef RMTUNIX_SOCK_INFO_CACHE
@@ -124,15 +125,14 @@
continue;
#ifdef IPC_STALE_RMTUNIX_CACHE_FIX
if (info->sk) {
- struct sock *s = info->sk;
- spin_lock(&s->sk_lock.slock);
+ LOCK_SPIN_LOCK(&info->rsk_spinlock);
if (!info->rsk_cached) {
- spin_unlock(&s->sk_lock.slock);
+ UNLOCK_SPIN_LOCK(&info->rsk_spinlock);
spin_unlock(&rmtunix_cache_listlock);
continue;
}
info->rsk_cached = 0;
- spin_unlock(&s->sk_lock.slock);
+ UNLOCK_SPIN_LOCK(&info->rsk_spinlock);
} else
BUG_ON(info->rsk_cached);
#endif
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com