[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6599ad830804030835s73392db0v29426425c0ea4381@mail.gmail.com>
Date: Thu, 3 Apr 2008 08:35:04 -0700
From: "Paul Menage" <menage@...gle.com>
To: "Satoshi UCHIDA" <s-uchida@...jp.nec.com>
Cc: linux-kernel@...r.kernel.org,
containers@...ts.linux-foundation.org, axboe@...nel.dk,
tom-sugawara@...jp.nec.com, m-takahashi@...jp.nec.com
Subject: Re: [RFC][patch 8/11][CFQ-cgroup] Control cfq_data per cgroup
On Tue, Apr 1, 2008 at 2:38 AM, Satoshi UCHIDA <s-uchida@...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
--
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