]> git.baikalelectronics.ru Git - kernel.git/commit
exec: avoid propagating PF_NO_SETAFFINITY into userspace child
authorZhang Yi <zhang.yi20@zte.com.cn>
Thu, 23 Jan 2014 23:55:57 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:02 +0000 (16:37 -0800)
commite60da0c2a6983d4ac2268b5f95af13087a89003e
tree98bfd036a6df9cad49cb58a372a4fe94d89e7f5a
parentdc218a4650d8fe4013c19570f1c576cda5588a33
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@zte.com.cn>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c