From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH 5.5/9] cgroup: use for_each_subsys() instead of for_each_root_subsys() in cgroup_populate/clear_dir() Date: Fri, 12 Jul 2013 14:13:01 +0800 Message-ID: <51DF9E6D.2060905@huawei.com> References: <1372463145-4245-1-git-send-email-tj@kernel.org> <20130711171927.GE10195@mtj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130711171927.GE10195-9pTldWuhBndy/B6EtB590w@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Tejun Heo Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org On 2013/7/12 1:19, Tejun Heo wrote: > rebind_subsystems() will be updated to handle file creations and > removals with proper error handling and to do that will need to > perform file operations before actually adding the subsystem to the > hierarchy. > > To enable such usage, update cgroup_populate/clear_dir() to use > for_each_subsys() instead of for_each_root_subsys() so that they > operate on all subsystems specified by @subsys_mask whether that > subsystem is currently bound to the hierarchy or not. > > Signed-off-by: Tejun Heo Acked-by: Li Zefan