summaryrefslogtreecommitdiff
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2019-05-31 10:38:57 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-09 17:53:36 +0200
commitd7b538a6c9678fcc6f00b6024bcbfd4bb0593d1c (patch)
treec3655427af581f554ec5f8d71ec49b7f98038256 /kernel/cgroup
parentc30c2b103edfdb523b67aa7f94b49646bb888e6e (diff)
cgroup: Call cgroup_release() before __exit_signal()
commit 6b115bf58e6f013ca75e7115aabcbd56c20ff31d upstream. cgroup_release() calls cgroup_subsys->release() which is used by the pids controller to uncharge its pid. We want to use it to manage iteration of dying tasks which requires putting it before __unhash_process(). Move cgroup_release() above __exit_signal(). While this makes it uncharge before the pid is freed, pid is RCU freed anyway and the window is very narrow. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/cgroup')
0 files changed, 0 insertions, 0 deletions