[Devel] Re: [RFC][patch 8/11][CFQ-cgroup] Control cfq_data per cgroup
Paul Menage
menage at google.com
Thu Apr 3 08:35:04 PDT 2008
On Tue, Apr 1, 2008 at 2:38 AM, Satoshi UCHIDA <s-uchida at ap.jp.nec.com> wrote:
> +
> +static void *cfq_cgroup_init_cfq_data(struct cfq_cgroup *cfqc, struct cfq_data *cfqd)
> +{
> + struct cgroup *child;
> +
> + /* setting cfq_data for cfq_cgroup */
> + if (!cfqc) {
> + cfqc = cgroup_to_cfq_cgroup(get_root_subsys(&cfq_cgroup_subsys));
Rather than adding get_root_subsys(), can't you just keep a reference
locally to your root subsystem state?
Paul
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list