Skip to content
  • Li Zefan's avatar
    cpuset: initialize top_cpuset's configured masks at mount · 39bd0d15
    Li Zefan authored
    
    
    We now have to support different behaviors for default hierachy and
    legacy hiearchy, top_cpuset's configured masks need to be initialized
    accordingly.
    
    Suppose we've offlined cpu1.
    
    On default hierarchy:
    
    	# mount -t cgroup -o __DEVEL__sane_behavior xxx /cpuset
    	# cat /cpuset/cpuset.cpus
    	0-15
    
    On legacy hierarchy:
    
    	# mount -t cgroup xxx /cpuset
    	# cat /cpuset/cpuset.cpus
    	0,2-15
    
    Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    39bd0d15