Skip to contentSkip to conversation

defer/rcuusage: Fix spin_lock arg and write-side term

PATCH New Kunwu Chan 1 participant 1 message Feb 24

lore
Share & tools
lore

Kunwu Chan

author
#0 lore raw

PATCH 1/1 defer/rcuusage: Fix spin_lock arg and write-side term

---
 defer/rcuusage.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
defer/rcuusage.tex +2 -2
index b5111043..6c960a00 100644
@@ -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