cgroup: pids: use atomic64_t for pids->limit
authorAleksa Sarai <cyphar@cyphar.com>
Wed, 16 Oct 2019 15:50:01 +0000 (02:50 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:34:56 +0000 (20:34 +0100)
commita1de70aa867fb1756eafc45584c525cc6e4fdde2
treef86cd796eb27f2a27e477ab188f23c69242cbab8
parent317c80c672ce60e4eec8cf50d5df2520385c940f
cgroup: pids: use atomic64_t for pids->limit

commit a713af394cf382a30dd28a1015cbe572f1b9ca75 upstream.

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 49b786ea146f ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/cgroup/pids.c