Re: [PATCH] cgroup: fix to break the while loop in cgroup_attach_task() correctly

2013-10-13 Thread Tejun Heo
On Sat, Oct 12, 2013 at 10:59:17AM +0800, Li Zefan wrote: > From: Anjana V Kumar > > Both Anjana and Eunki reported a stall in the while_each_thread loop > in cgroup_attach_task(). > > It's because, when we attach a single thread to a cgroup, if the cgroup > is exiting or is already in that

Re: [PATCH] cgroup: fix to break the while loop in cgroup_attach_task() correctly

2013-10-13 Thread Tejun Heo
On Sat, Oct 12, 2013 at 10:59:17AM +0800, Li Zefan wrote: From: Anjana V Kumar anjanav...@gmail.com Both Anjana and Eunki reported a stall in the while_each_thread loop in cgroup_attach_task(). It's because, when we attach a single thread to a cgroup, if the cgroup is exiting or is

[PATCH] cgroup: fix to break the while loop in cgroup_attach_task() correctly

2013-10-11 Thread Li Zefan
From: Anjana V Kumar Both Anjana and Eunki reported a stall in the while_each_thread loop in cgroup_attach_task(). It's because, when we attach a single thread to a cgroup, if the cgroup is exiting or is already in that cgroup, we won't break the loop. If the task is already in the cgroup, the

[PATCH] cgroup: fix to break the while loop in cgroup_attach_task() correctly

2013-10-11 Thread Li Zefan
From: Anjana V Kumar anjanav...@gmail.com Both Anjana and Eunki reported a stall in the while_each_thread loop in cgroup_attach_task(). It's because, when we attach a single thread to a cgroup, if the cgroup is exiting or is already in that cgroup, we won't break the loop. If the task is