[SSI] openssi/kernel/include/cluster/ssi/mosixll mosixtask.h, 1.8, 1.9 routines.h, 1.7, 1.8

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

Modified Files:
      Tag: OPENSSI-FC
	mosixtask.h routines.h 
Log Message:
MOSIX:
- Fix race over elements in mosix_task struct. Use task_lock() to protect mosix_task->dctime, pages_i_bring, etc.
- Code clean up: choose(), consider(), mosix_calc_load().
- Fix release_migrations() using wrong lock for mosix_task->load.
- Remove unused pagetime, migpages in struct mosix_task.
- run_over_dirty_pages() to hold down_read(&mmap_sem) to avoid possible race. (#ifdef SSI_BALANCE_MEMORY)

VPROC:
- Use BKL to protect tty_old_pgrp in VProc context. (#ifdef PPROC_SETCTTY_SIGLOCK)


Index: mosixtask.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/mosixll/mosixtask.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- mosixtask.h	27 Oct 2009 03:18:30 -0000	1.8
+++ mosixtask.h	18 Nov 2009 06:16:53 -0000	1.9
@@ -47,7 +47,6 @@
 	int lock_depth;			/* of the mosix_flag */
 #endif
 	volatile uint32_t stay;		/* reasons why process must stay */
-	int64_t pagetime;	/* time waiting for free pages (ms) */
 	int64_t last_consider;	/* user time since last considered migration */
 	now_t last_mconsider;	/* when last selected for memory-balancing */
 #ifdef SSI_BALANCE_MEMORY
@@ -61,11 +60,6 @@
 	unsigned long ran;		/* ticks running during last second */
 	unsigned long runstart;/* "load_ticks" (+1) since running */
 	unsigned long load;		/* estimated contribution to load */
-#ifdef SSI_BALANCE_MEMORY
-	unsigned long migpages;		/* # of migrating pages */
-#else
-	int migpages;		/* # of migrating pages */
-#endif
 };
 #else /* !CONFIG_SSI */
 struct mosix_task

Index: routines.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/mosixll/routines.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- routines.h	27 Oct 2009 03:18:30 -0000	1.7
+++ routines.h	18 Nov 2009 06:16:53 -0000	1.8
@@ -60,12 +60,12 @@
 
 extern void mosix_load_init(void);
 extern void load_balance(void);
-extern void mosix_clear_statistics(void);
-struct sonstats;
 #ifdef CONFIG_SSI
-extern void consider(int, struct sonstats *, clusternode_t *);
-extern void release_migrations(int);
+extern void consider(int, clusternode_t *);
+extern void release_migrations(int, unsigned long);
 #else
+struct sonstats;
+extern void mosix_clear_statistics(void);
 extern void consider(int, struct sonstats *);
 extern int send_local_aload(int);
 extern int send_with_miginfo(int, void *, int);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
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.