[SSI] openssi/kernel/cluster/ssi/vproc rproc_cli_pproc.c, 1.28, 1.29 rproc_svr_pproc.c, 1.32, 1.33
Roger Tsang <[email protected]> Tue, 09 Nov 2010 02:44:04 +0000
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv12716/cluster/ssi/vproc
Modified Files:
Tag: OPENSSI-FC
rproc_cli_pproc.c rproc_svr_pproc.c
Log Message:
common_data_load_msg, common_data_unload_msg: no longer acquire task_lock when reading/writing to Mosix fields. There is no race since OpenSSI modified balancing algorithm skips processes that are migrating.
Index: rproc_cli_pproc.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc/rproc_cli_pproc.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- rproc_cli_pproc.c 9 Nov 2010 02:31:01 -0000 1.28
+++ rproc_cli_pproc.c 9 Nov 2010 02:44:02 -0000 1.29
@@ -670,16 +670,16 @@
t->node_context : this_node;
#ifdef CONFIG_MOSIX_LL
/* load leveling information */
- /* SSI_XXX: skipped task_rq_lock for mosix.dflags */
- task_lock(t);
+ /* Skipped locking, DPAGEIN dflags is set */
comm_datap->comm_dflags = (t->mosix.dflags & ~DPAGEIN);
comm_datap->comm_stay = t->mosix.stay;
+ if (optype == RVP_MIGRATE) {
+ comm_datap->comm_last_consider = t->mm->last_consider;
+ comm_datap->comm_pages_i_bring = t->mm->pages_i_bring;
+ /* comm_datap->comm_last_mconsider = t->mm->last_mconsider; */
+ }
/* comm_datap->comm_pagetime = t->mosix.pagetime; */
- comm_datap->comm_last_consider = t->mosix.last_consider;
- /* comm_datap->comm_last_mconsider = t->mosix.last_mconsider; */
- comm_datap->comm_pages_i_bring = t->mosix.pages_i_bring;
/* comm_datap->comm_dctime = t->mosix.dctime; */
- task_unlock(t);
#endif
out:
Index: rproc_svr_pproc.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc/rproc_svr_pproc.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- rproc_svr_pproc.c 9 Nov 2010 02:31:01 -0000 1.32
+++ rproc_svr_pproc.c 9 Nov 2010 02:44:02 -0000 1.33
@@ -548,15 +548,15 @@
t->node_context = comm_datap->comm_node_context;
#ifdef CONFIG_MOSIX_LL
- task_lock(t);
t->mosix.dflags = comm_datap->comm_dflags;
t->mosix.stay = comm_datap->comm_stay;
+ if (optype == RVP_MIGRATE) {
+ t->mm->last_consider = comm_datap->comm_last_consider;
+ t->mm->last_mconsider = get_jiffies_64();
+ t->mm->pages_i_bring = comm_datap->comm_pages_i_bring;
+ }
/* t->mosix.pagetime = comm_datap->comm_pagetime; */
- t->mosix.last_consider = comm_datap->comm_last_consider;
- t->mosix.last_mconsider = get_jiffies_64();
- t->mosix.pages_i_bring = comm_datap->comm_pages_i_bring;
/* t->mosix.dctime = comm_datap->comm_dctime; */
- task_unlock(t);
#endif
out:
return error;
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev