Skip to content

Commit d20d374

Browse files
Mike Galbraithgregkh
authored andcommitted
sched,cgroup: Fix up task_groups list
commit 35cf4e5 upstream. With multiple instances of task_groups, for_each_rt_rq() is a noop, no task groups having been added to the rt.c list instance. This renders __enable/disable_runtime() and print_rt_stats() noop, the user (non) visible effect being that rt task groups are missing in /proc/sched_debug. Signed-off-by: Mike Galbraith <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent caecd86 commit d20d374

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7179,6 +7179,7 @@ int in_sched_functions(unsigned long addr)
71797179

71807180
#ifdef CONFIG_CGROUP_SCHED
71817181
struct task_group root_task_group;
7182+
LIST_HEAD(task_groups);
71827183
#endif
71837184

71847185
DECLARE_PER_CPU(cpumask_var_t, load_balance_tmpmask);

kernel/sched/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extern struct mutex sched_domains_mutex;
8080
struct cfs_rq;
8181
struct rt_rq;
8282

83-
static LIST_HEAD(task_groups);
83+
extern struct list_head task_groups;
8484

8585
struct cfs_bandwidth {
8686
#ifdef CONFIG_CFS_BANDWIDTH

0 commit comments

Comments
 (0)