• Tejun Heo's avatar
    cgroup: simplify threadgroup locking · 3014dde7
    Tejun Heo authored
    Note: This commit was originally committed as b5ba75b5 but got
          reverted by f9f9e7b7 due to the performance regression from
          the percpu_rwsem write down/up operations added to cgroup task
          migration path.  percpu_rwsem changes which alleviate the
          performance issue are pending for v4.4-rc1 merge window.
          Re-apply.
    
    Now that threadgroup locking is made global, code paths around it can
    be simplified.
    
    * lock-verify-unlock-retry dancing removed from __cgroup_procs_write().
    
    * Race protection against de_thread() removed from
      cgroup_update_dfl_csses().
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Link: http://lkml.kernel.org/g/55F8097A.7000206@de.ibm.com
    3014dde7
cgroup.c 153 KB