Re: [PATCH 1.5/4] cgroup: delay populate css id

From: Paul Menage
Date: Wed Jan 21 2009 - 04:36:54 EST

On Mon, Jan 19, 2009 at 9:43 PM, KAMEZAWA Hiroyuki
<kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
> +static void populate_css_id(struct cgroup_subsys_state *css)
> +{
> + struct css_id *id = rcu_dereference(css->id);
> + if (id)
> + rcu_assign_pointer(id->css, css);
> +}

I don't think this needs to be split out into a separate function.
Also, there's no need for an rcu_dereference(), since we're holding

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at