[SSI] openssi/kernel/cluster/ssi/vproc dvp_move.c,1.22,1.23
Roger Tsang <[email protected]> Wed, 15 Dec 2010 07:39:43 +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-serv20068/kernel/cluster/ssi/vproc
Modified Files:
Tag: OPENSSI-FC
dvp_move.c
Log Message:
- setup_pid_move: now that CFS operations return -ERESTARTSYS when interrupted during cfstok_req() we can check for any unblocked signals. revert CVS tag OPENSSI-FC-1-9-6-PRE54 (#ifdef CFSTOK_INTR)
- setup_pid_move: also wake stopped processes. support memory balancing of stopped processes.
Index: dvp_move.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc/dvp_move.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- dvp_move.c 15 Dec 2010 06:58:33 -0000 1.22
+++ dvp_move.c 15 Dec 2010 07:39:36 -0000 1.23
@@ -1333,20 +1333,14 @@
spin_unlock(&p->alloc_lock);
if ((h->mh_type & MOV_SIGMIG) || p != current) {
-#ifdef CFS_INTR
- /* Avoid interrupted system call on non-chard mounts */
- siginitsetinv(&fillset,
- sigmask(SIGKILL) | sigmask(SIGINT) | sigmask(SIGQUIT));
-#else
sigfillset(&fillset);
-#endif
spin_lock_irqsave(&p->sighand->siglock, flags);
set_tsk_thread_flag(p, TIF_MIGPENDING);
/* Does the task have all signals blocked? */
if (has_pending_signals(&fillset, &p->blocked)) {
/* No: wake it up. */
- smp_mb(); /* ensure all CPU's see new state */
- signal_wake_up(p, 0);
+ smp_mb(); /* ensure all CPU's see new mh_state */
+ wake_up_state(p, TASK_INTERRUPTIBLE | TASK_STOPPED | TASK_TRACED);
}
spin_unlock_irqrestore(&p->sighand->siglock, flags);
}
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d