Commit 16ea06fe authored by Uladzislau Rezki (Sony)'s avatar Uladzislau Rezki (Sony) Committed by Treehugger Robot
Browse files

UPSTREAM: 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.

Bug: 258241771
Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
(cherry picked from commit 8fc5494a)
Signed-off-by: default avatarQais Yousef <qyousef@google.com>
Change-Id: Iddde5ec15e8574216abc95d8c64efa5c66868508
parent 5d1a3986
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment