lkml.org 
[lkml]   [2005]   [Jan]   [10]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 10 Jan 2005 03:42:02 -0800
FromChris Wright <>
SubjectRe: keventd gives exceptional priority to usermode helpers
* Jan Engelhardt (jengelh@linux01.gwdg.de) wrote:
> --- usr_A/src/kotd/linux-2.6.8-20041204030200/kernel/kmod.c	2004-12-06 14:28:44.000000000 +0100
> +++ usr_B/src/kotd/linux-2.6.8-20041204030200/kernel/kmod.c	2005-01-06 11:44:04.130600000 +0100
> @@ -165,6 +165,7 @@ static int ____call_usermodehelper(void 
> 
>  	/* We can run anywhere, unlike our parent keventd(). */
>  	set_cpus_allowed(current, CPU_MASK_ALL);
> +        set_user_nice(current, 0);

Seems reasonable.  Although, I don't see a niceval of -20, but -5 on
keventd (workqueues do set_user_nice(-5)).  Also, this patch is
whitespace damaged, should be tab not spaces.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [from the cache]
©2003-2008