]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: pids: use atomic64_t for pids->limit
authorAleksa Sarai <cyphar@cyphar.com>
Wed, 16 Oct 2019 15:50:01 +0000 (02:50 +1100)
committerTejun Heo <tj@kernel.org>
Thu, 24 Oct 2019 19:07:10 +0000 (12:07 -0700)
commit841e97139d88dfadc5fddb14b8efb86c7f410e0d
treebe789f59b00a4a4a2bcbcdf3fd571f606e3cf1e2
parentecd145bcf0286b9a86a28b14ab79c81140658718
cgroup: pids: use atomic64_t for pids->limit

Because pids->limit can be changed concurrently (but we don't want to
take a lock because it would be needlessly expensive), use atomic64_ts
instead.

Fixes: commit af7a9a6fe6df ("cgroup: implement the PIDs subsystem")
Cc: stable@vger.kernel.org # v4.3+
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/pids.c