Skip to content
  • Li Zefan's avatar
    cpuset: re-structure update_cpumask() a bit · a73456f3
    Li Zefan authored
    
    
    Check if cpus_allowed is to be changed before calling validate_change().
    
    This won't change any behavior, but later it will allow us to do this:
    
     # mkdir /cpuset/child
     # echo $$ > /cpuset/child/tasks	/* empty cpuset */
     # echo > /cpuset/child/cpuset.cpus	/* do nothing, won't fail */
    
    Without this patch, the last operation will fail.
    
    Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    a73456f3