cgroup: use a per-cgroup work for release agent
authorZefan Li <lizefan@huawei.com>
Thu, 18 Sep 2014 08:06:19 +0000 (16:06 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 18 Sep 2014 17:14:22 +0000 (13:14 -0400)
commit971ff49355387fef41d1327434d8939721a4eb35
tree3488f3db1de2b97183453864f0a3c2a896ef856a
parent0c8fc2c1210556434835adfb2274f41704853e8a
cgroup: use a per-cgroup work for release agent

Instead of using a global work to schedule release agent on removable
cgroups, we change to use a per-cgroup work to do this, which makes
the code much simpler.

v2: use a dedicated work instead of reusing css->destroy_work. (Tejun)

Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup.h
kernel/cgroup.c