diff options
author | Tejun Heo <tj@kernel.org> | 2018-04-26 23:29:05 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-04-26 23:29:05 +0200 |
commit | 0fa294fb1985c06c4e3325e30e759d4ca580f59a (patch) | |
tree | 41bc9abc473d8df21ab0cb1dca6c1b8746abcacb /net/key | |
parent | cgroup: Factor out and expose cgroup_rstat_*() interface functions (diff) | |
download | linux-0fa294fb1985c06c4e3325e30e759d4ca580f59a.tar.xz linux-0fa294fb1985c06c4e3325e30e759d4ca580f59a.zip |
cgroup: Replace cgroup_rstat_mutex with a spinlock
Currently, rstat flush path is protected with a mutex which is fine as
all the existing users are from interface file show path. However,
rstat is being generalized for use by controllers and flushing from
atomic contexts will be necessary.
This patch replaces cgroup_rstat_mutex with a spinlock and adds a
irq-safe flush function - cgroup_rstat_flush_irqsafe(). Explicit
yield handling is added to the flush path so that other flush
functions can yield to other threads and flushers.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions