diff options
author | Uladzislau Rezki (Sony) | 2022-11-29 16:58:21 +0100 |
---|---|---|
committer | Paul E. McKenney | 2023-01-03 17:48:41 -0800 |
commit | 8fc5494ad5face62747a3937db66b00db1e5d80b (patch) | |
tree | db67cb2fdc0efa66885c3c7dad99ba8a2e5a8a11 /usr | |
parent | 8c15a9e8086508962b2b69456ed22dc517d91b15 (diff) |
rcu/kvfree: Move need_offload_krc() out of krcp->lock
The need_offload_krc() function currently holds the krcp->lock in order
to safely check krcp->head. This commit removes the need for this lock
in that function by updating the krcp->head pointer using WRITE_ONCE()
macro so that readers can carry out lockless loads of that pointer.
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions