Messages in this thread | | | Date | Mon, 10 Jan 2005 03:42:02 -0800 | From | Chris Wright <> | Subject | Re: 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/
| |