summaryrefslogtreecommitdiffstats
path: root/net/key
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2018-04-26 23:29:05 +0200
committerTejun Heo <tj@kernel.org>2018-04-26 23:29:05 +0200
commit0fa294fb1985c06c4e3325e30e759d4ca580f59a (patch)
tree41bc9abc473d8df21ab0cb1dca6c1b8746abcacb /net/key
parentcgroup: Factor out and expose cgroup_rstat_*() interface functions (diff)
downloadlinux-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