[PATCH v2 0/1] cgroup: replace global percpu_rwsem with signal_struct->group_rwsem when writing cgroup.procs/threads

Yi Tao posted 1 patch 4 weeks ago
include/linux/cgroup-defs.h     |  6 +++
include/linux/sched/signal.h    |  4 ++
init/init_task.c                |  3 ++
kernel/cgroup/cgroup-internal.h |  4 +-
kernel/cgroup/cgroup-v1.c       |  8 ++--
kernel/cgroup/cgroup.c          | 72 +++++++++++++++++++--------------
kernel/fork.c                   |  4 ++
7 files changed, 64 insertions(+), 37 deletions(-)
[PATCH v2 0/1] cgroup: replace global percpu_rwsem with signal_struct->group_rwsem when writing cgroup.procs/threads
Posted by Yi Tao 4 weeks ago
Changes in v2:
- Use favordynmods as the enabling switch.
- Determine whether to use the per-thread-group rwsem based on whether
the task is NULL.
- Fix system hang caused by acquiring cgroup_threadgroup_rwsem inside
rcu_read_lock.

Yi Tao (1):
  cgroup: replace global percpu_rwsem with signal_struct->group_rwsem
    when writing cgroup.procs/threads

 include/linux/cgroup-defs.h     |  6 +++
 include/linux/sched/signal.h    |  4 ++
 init/init_task.c                |  3 ++
 kernel/cgroup/cgroup-internal.h |  4 +-
 kernel/cgroup/cgroup-v1.c       |  8 ++--
 kernel/cgroup/cgroup.c          | 72 +++++++++++++++++++--------------
 kernel/fork.c                   |  4 ++
 7 files changed, 64 insertions(+), 37 deletions(-)

-- 
2.32.0.3.g01195cf9f