summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorUladzislau Rezki (Sony) <urezki@gmail.com>2021-04-15 19:19:57 +0200
committerPaul E. McKenney <paulmck@kernel.org>2021-05-10 16:00:48 -0700
commitac7625ebd5f7bad93f821b7397fe50635f58aa4b (patch)
tree90c49b7ecc0f899a41490673c3832547d8177ca2 /init
parentd0bfa8b3c411e25e014e4131d2804afe29c440a6 (diff)
kvfree_rcu: Use [READ/WRITE]_ONCE() macros to access to nr_bkv_objs
nr_bkv_objs is a count of the objects in the kvfree_rcu page cache. Accessing it requires holding the ->lock. Switch to READ_ONCE() and WRITE_ONCE() macros to provide lockless access to this counter. This lockless access is used for the shrinker. Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions