Re: [PATCH 1/7] containers (V7): Generic container system abstracted from cpusets code

Srivatsa Vaddagiri
2007-02-12T12:33:45Z

On Mon, Feb 12, 2007 at 12:15:22AM -0800, menage@google.com wrote:
> +void container_fork(struct task_struct *child)
> +{
> + task_lock(current);

Can't this be just rcu_read_lock()?

> + child->container = current->container;
> + atomic_inc(&child->container->count);
> + task_unlock(current);
> +}

--
Regards,
vatsa