From: Frederic Weisbecker Date: Wed, 21 Dec 2011 19:03:19 +0000 (+0100) Subject: cgroup: Drop task_lock(parent) on cgroup_fork() X-Git-Tag: v3.3-rc1~148^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e381b0eb1e1a9805c37335562e8dc02e7d7848c;p=pandora-kernel.git cgroup: Drop task_lock(parent) on cgroup_fork() We don't need to hold the parent task_lock() on the parent in cgroup_fork() because we are already synchronized against the two places that may change the parent css_set concurrently: - cgroup_exit(), but the parent obviously can't exit concurrently - cgroup migration: we are synchronized against threadgroup_lock() So we can safely remove the task_lock() there. Signed-off-by: Frederic Weisbecker Reviewed-by: Li Zefan Signed-off-by: Tejun Heo Cc: Containers Cc: Cgroups Cc: KAMEZAWA Hiroyuki Cc: Oleg Nesterov Cc: Andrew Morton Cc: Paul Menage Cc: Mandeep Singh Baines --- Reading git-diff-tree failed