[SSI] openssi/kernel/cluster/ssi/ipc namesvr_func.c,1.20,1.21
Roger Tsang <[email protected]> Sun, 21 Mar 2010 05:26:06 +0000
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/ipc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv19882/kernel/cluster/ssi/ipc
Modified Files:
Tag: OPENSSI-FC
namesvr_func.c
Log Message:
IPC (#ifdef SSI_IPC_OBJ_DB_LOCKLESS):
- objsvr_find_key() re-arrange order of tests. Test for localview before server nodenum as was done in previous code.
Index: namesvr_func.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/ipc/namesvr_func.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- namesvr_func.c 5 Mar 2010 06:30:21 -0000 1.20
+++ namesvr_func.c 21 Mar 2010 05:26:04 -0000 1.21
@@ -560,20 +560,21 @@
#ifdef SSI_IPC_OBJ_DB_LOCKLESS
ipc_obj_t *objp;
int idx;
- char found = 0;
+ char found;
if (key == IPC_PRIVATE)
return NULL;
+ found = 0;
rcu_read_lock();
for (idx = 0; idx < objdbp->iodb_size; idx++) {
objp = rcu_dereference(objdbp->iodb_active[idx]);
if (!objp || objp->io_perm->key != key)
continue;
- if (view && objp->io_svr_node != node)
- continue;
if (view ^ objp->io_local_view)
continue;
+ if (view && objp->io_svr_node != node)
+ continue;
if (atomic_test_and_add(1, &objp->io_refcnt))
found = 1;
break;
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev