[PATCH 08/10] cgroup: don't use subsys->can_attach_task() or ->attach_task()

Frederic Weisbecker fweisbec at gmail.com
Mon Nov 14 23:54:10 UTC 2011


On Tue, Nov 01, 2011 at 04:46:31PM -0700, Tejun Heo wrote:
> Now that subsys->can_attach() and attach() take @tset instead of
> @task, they can handle per-task operations.  Convert
> ->can_attach_task() and ->attach_task() users to use ->can_attach()
> and attach() instead.  Most converions are straight-forward.
> Noteworthy changes are,
> 
> * In cgroup_freezer, remove unnecessary NULL assignments to unused
>   methods.  It's useless and very prone to get out of sync, which
>   already happened.
> 
> * In cpuset, PF_THREAD_BOUND test is checked for each task.  This
>   doesn't make any practical difference but is conceptually cleaner.
> 
> Signed-off-by: Tejun Heo <tj at kernel.org>
> Cc: Paul Menage <paul at paulmenage.org>
> Cc: Li Zefan <lizf at cn.fujitsu.com>
> Cc: Balbir Singh <bsingharora at gmail.com>
> Cc: Daisuke Nishimura <nishimura at mxp.nes.nec.co.jp>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
> Cc: James Morris <jmorris at namei.org>
> Cc: Ingo Molnar <mingo at elte.hu>
> Cc: Peter Zijlstra <peterz at infradead.org>

Reviewed-by: Frederic Weisbecker <fweisbec at gmail.com>


More information about the Containers mailing list