Re: [patch] Re: autogroup: sched_setscheduler() fails

From: Bharata B Rao
Date: Thu Jan 13 2011 - 03:46:59 EST


On Thu, Jan 13, 2011 at 04:54:50AM +0100, Mike Galbraith wrote:
> (mailer switched me to work account again. grrrr, switch yet again:)
>
> On Wed, 2011-01-12 at 14:32 +0800, Yong Zhang wrote:
>
> > Setting rt_runtime both in this patch and the previous one will make tune
> > other's rt_runtime/rt_period trouble, I guess.
>
> Yeah, as in making it impossible to allocate even 1 usec :) We need
> zero bandwidth though, so tell __sched_setscheduler() that autogroups
> having zero allocated is perfectly fine.
>
> sched, autogroup: fix CONFIG_RT_GROUP_SCHED sched_setscheduler() failure.
>
> If CONFIG_RT_GROUP_SCHED is set, __sched_setscheduler() fails due to autogroup
> not allocating rt_runtime. Free unused/unusable rt_se and rt_rq, redirect RT
> tasks to the root task group, and tell __sched_setscheduler() that it's ok.
>
> Signed-off-by: Mike Galbraith <efault@xxxxxx>
> Reported-by: Bharata B Rao <bharata@xxxxxxxxxxxxxxxxxx>
>
> ---
> kernel/sched.c | 3 ++-
> kernel/sched_autogroup.c | 27 +++++++++++++++++++++++++++
> kernel/sched_autogroup.h | 4 ++++
> 3 files changed, 33 insertions(+), 1 deletion(-)
>

Works fine here.

Thanks,
Bharata.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/