lkml.org 
[lkml]   [2021]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 4/9] cgroup/cpuset: Enable event notification when partition become invalid
    On Tue, Jul 20, 2021 at 10:18:29AM -0400, Waiman Long wrote:
    > +static inline void notify_partition_change(struct cpuset *cs,
    > + int old_prs, int new_prs)
    > +{
    > + if ((old_prs == new_prs) ||
    > + ((old_prs != PRS_ERROR) && (new_prs != PRS_ERROR)))
    > + return;
    > + cgroup_file_notify(&cs->partition_file);

    I'd generate an event on any state changes. The user have to read the file
    to find out what happened anyway.

    Thanks.

    --
    tejun

    \
     
     \ /
      Last update: 2021-07-27 01:14    [W:4.191 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site