lkml.org 
[lkml]   [2013]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectkmod: avoid propagating PF_NO_SETAFFINITY into userspace child
From
Date

The kernel worker thread has the PF_NO_SETAFFINITY flag, and it is propagated
into the userspace child. Clearing this flag in usersapce child to enable its
migrating capability.


Signed-off-by: Zhang Yi <zhang.yi20@zte.com.cn>

--- linux3-12/kernel/kmod.c 2013-11-14 09:06:58.991781656 +0000
+++ linux3-12/kernel/kmod.c 2013-11-14 09:08:47.511781621 +0000
@@ -217,6 +217,7 @@ static int ____call_usermodehelper(void
* Avoid propagating that into the userspace child.
*/
set_user_nice(current, 0);
+ current->flags &= ~PF_NO_SETAFFINITY;

retval = -ENOMEM;
new = prepare_kernel_cred(current);


\
 
 \ /
  Last update: 2013-11-14 03:21    [W:0.065 / U:29.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site