[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110113084648.GA2982@in.ibm.com>
Date: Thu, 13 Jan 2011 14:16:48 +0530
From: Bharata B Rao <bharata@...ux.vnet.ibm.com>
To: Mike Galbraith <efault@....de>
Cc: Yong Zhang <yong.zhang0@...il.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org
Subject: Re: [patch] Re: autogroup: sched_setscheduler() fails
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@....de>
> Reported-by: Bharata B Rao <bharata@...ux.vnet.ibm.com>
>
> ---
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists