lkml.org 
[lkml]   [2008]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: fix a bug in sched domain degenerate

* Li Zefan <lizf@cn.fujitsu.com> wrote:

> (1) on i386 with SCHED_SMT and SCHED_MC enabled
> # mount -t cgroup -o cpuset xxx /mnt
> # echo 0 > /mnt/cpuset.sched_load_balance
> # mkdir /mnt/0
> # echo 0 > /mnt/0/cpuset.cpus
> # dmesg
> CPU0 attaching sched-domain:
> domain 0: span 0 level CPU
> groups: 0
>
> (2) on i386 with SCHED_MC enabled but SCHED_SMT disabled
> # same with (1)
> # dmesg
> CPU0 attaching NULL sched-domain.
>
> The bug is some sched domains may be skipped unintentionally when
> doing sched domain degenerating.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---
> kernel/sched.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)

applied to tip/sched/urgent, thanks!

Ingo


\
 
 \ /
  Last update: 2008-11-06 08:09    [W:0.143 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site