Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b73a7e76c1eeaa770a41554698917c3c45686a07 Commit: b73a7e76c1eeaa770a41554698917c3c45686a07 Parent: 6672f76a5a1878d42264c1deba8f1ab52b4618d9 Author: Jan Engelhardt <[EMAIL PROTECTED]> AuthorDate: Tue May 8 00:28:24 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue May 8 11:15:07 2007 -0700
Fix kevent's childs priority greediness Fix kevent's childs priority greediness. Such tasks were always scheduled at nice level -5 and, at that time, udev stole us the CPU time with -5. Already posted at http://lkml.org/lkml/2005/1/10/85 [EMAIL PROTECTED]: add comment] Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> Cc: Chris Wright <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- kernel/kmod.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/kernel/kmod.c b/kernel/kmod.c index 11c584c..49cc4b9 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -165,6 +165,12 @@ static int ____call_usermodehelper(void *data) /* We can run anywhere, unlike our parent keventd(). */ set_cpus_allowed(current, CPU_MASK_ALL); + /* + * Our parent is keventd, which runs with elevated scheduling priority. + * Avoid propagating that into the userspace child. + */ + set_user_nice(current, 0); + retval = -EPERM; if (current->fs->root) retval = kernel_execve(sub_info->path, - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html