]> git.baikalelectronics.ru Git - kernel.git/commit
cgroups: Account for CSS_DEACT_BIAS in __css_put
authorSalman Qazi <sqazi@google.com>
Thu, 14 Jun 2012 21:55:30 +0000 (14:55 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 18 Jun 2012 22:38:02 +0000 (15:38 -0700)
commitab91388932ea88945759a1820e05f84ecc99f1e9
treebb3369e7444a2efe8e890ddd341e576e3cba18c1
parent6bbeb5bf92c5c18c1205ce68d87a2be5fe2d798a
cgroups: Account for CSS_DEACT_BIAS in __css_put

When we fixed the race between atomic_dec and css_refcnt, we missed
the fact that css_refcnt internally subtracts CSS_DEACT_BIAS to get
the actual reference count.  This can potentially cause a refcount leak
if __css_put races with cgroup_clear_css_refs.

Signed-off-by: Salman Qazi <sqazi@google.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c