defer/rcuusage: Fix spin_lock arg and write-side term
PATCH 1/1 defer/rcuusage: Fix spin_lock arg and write-side term
Signed-off-by Kunwu Chan <[email protected]>
--- defer/rcuusage.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
defer/rcuusage.tex +2 -2
@@ -1254,7 +1254,7 @@ rcu_read_lock(); list_for_each_entry_rcu(p, &head, list_field) { do_something_with(p); if (need_update(p)) { - spin_lock(my_lock); + spin_lock(&my_lock); do_update(p); spin_unlock(&my_lock); }
@@ -1583,7 +1583,7 @@ constraints: \begin{enumerate} \item Write-side acquisitions wait for any read-holders to release the lock. -\item Writer-side acquisitions wait for any write-holder to release +\item Write-side acquisitions wait for any write-holder to release the lock. \item Read-side acquisitions wait for any write-holder to release the lock.
Signature · 1 line
2.25.1