[SSI] openssi/kernel/cluster/ssi/vproc dvp_move.c,1.18,1.19
Roger Tsang <[email protected]> Mon, 25 Oct 2010 05:58:16 +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-serv13192/cluster/ssi/vproc
Modified Files:
Tag: OPENSSI-FC
dvp_move.c
Log Message:
setup_pid_move() don't signal task if it has blocked all signals except SIGKILL, SIGINT, SIGQUIT so that CFS does not return -ERESTARTSYS when the task is chosen for migration.
Index: dvp_move.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc/dvp_move.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dvp_move.c 4 May 2010 04:42:26 -0000 1.18
+++ dvp_move.c 25 Oct 2010 05:58:14 -0000 1.19
@@ -1317,7 +1317,13 @@
spin_unlock(&h->mh_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? */
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev