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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 12, 2007 at 12:15:22AM -0800, menage at 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


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux