• Waiman Long's avatar
    cgroup/cpuset: Enable event notification when partition state changes · e7cc9888
    Waiman Long authored
    
    
    A valid cpuset partition can become invalid if all its CPUs are offlined
    or somehow removed. This can happen through external events without
    "cpuset.cpus.partition" being touched at all.
    
    Users that rely on the property of a partition being present do not
    currently have a simple way to get such an event notified other than
    constant periodic polling which is both inefficient and cumbersome.
    
    To make life easier for those users, event notification is now enabled
    for "cpuset.cpus.partition" whenever its state changes.
    Suggested-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    e7cc9888
cpuset.c 102 KB