lkml.org 
[lkml]   [2011]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@gmx.de>
> Reported-by: Bharata B Rao <bharata@linux.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.


\
 
 \ /
  Last update: 2011-01-13 09:49    [from the cache]
©2003-2011 Jasper Spaans