+ exec-avoid-propagating-pf_no_setaffinity-into-userspace-child.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: + exec-avoid-propagating-pf_no_setaffinity-into-userspace-child.patch added to -mm tree
To: zhang.yi20@xxxxxxxxxx,oleg@xxxxxxxxxx,tj@xxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Mon, 13 Jan 2014 12:03:12 -0800


The patch titled
     From: zhang.yi20@xxxxxxxxxx
has been added to the -mm tree.  Its filename is
     exec-avoid-propagating-pf_no_setaffinity-into-userspace-child.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/exec-avoid-propagating-pf_no_setaffinity-into-userspace-child.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/exec-avoid-propagating-pf_no_setaffinity-into-userspace-child.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: zhang.yi20@xxxxxxxxxx
Subject: : exec: avoid propagating PF_NO_SETAFFINITY into userspace child

Userspace process doesn't want the PF_NO_SETAFFINITY, but its parent may be
a kernel worker thread which has PF_NO_SETAFFINITY set, and this worker thread
can do kernel_thread() to create the child.
Clearing this flag in usersapce child to enable its migrating capability.

Signed-off-by: Zhang Yi <zhang.yi20@xxxxxxxxxx>
Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>
Cc: Tejun Heo <tj@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/exec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN fs/exec.c~exec-avoid-propagating-pf_no_setaffinity-into-userspace-child fs/exec.c
--- a/fs/exec.c~exec-avoid-propagating-pf_no_setaffinity-into-userspace-child
+++ a/fs/exec.c
@@ -1087,8 +1087,8 @@ int flush_old_exec(struct linux_binprm *
 	bprm->mm = NULL;		/* We're using it now */
 
 	set_fs(USER_DS);
-	current->flags &=
-		~(PF_RANDOMIZE | PF_FORKNOEXEC | PF_KTHREAD | PF_NOFREEZE);
+	current->flags &= ~(PF_RANDOMIZE | PF_FORKNOEXEC | PF_KTHREAD |
+					PF_NOFREEZE | PF_NO_SETAFFINITY);
 	flush_thread();
 	current->personality &= ~bprm->per_clear;
 
_

Patches currently in -mm which might be from zhang.yi20@xxxxxxxxxx are

exec-avoid-propagating-pf_no_setaffinity-into-userspace-child.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux