commit | ac7625ebd5f7bad93f821b7397fe50635f58aa4b | [log] [tgz] |
---|---|---|
author | Uladzislau Rezki (Sony) <urezki@gmail.com> | Thu Apr 15 19:19:57 2021 +0200 |
committer | Paul E. McKenney <paulmck@kernel.org> | Mon May 10 16:00:48 2021 -0700 |
tree | 90c49b7ecc0f899a41490673c3832547d8177ca2 | |
parent | d0bfa8b3c411e25e014e4131d2804afe29c440a6 [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>