All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] locking/qspinlock: Modify comments to adapt to code modification.
@ 2020-12-28  3:18 Xiangyang Yu
  2021-01-12 14:06 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Xiangyang Yu @ 2020-12-28  3:18 UTC (permalink / raw)
  To: peterz, mingo, will; +Cc: linux-kernel

The function 'pv_wait_head_or_lock' comment is not modified in
commit 625e88be1f41 ("locking/qspinlock: Merge 'struct __qspinlock'
into 'struct qspinlock'"). Fix it.

Signed-off-by: Xiangyang Yu <yuxiangyang4@huawei.com>
---
 kernel/locking/qspinlock_paravirt.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/locking/qspinlock_paravirt.h b/kernel/locking/qspinlock_paravirt.h
index e84d21aa0722..0b7ecf4eb8b8 100644
--- a/kernel/locking/qspinlock_paravirt.h
+++ b/kernel/locking/qspinlock_paravirt.h
@@ -393,7 +393,7 @@ static void pv_kick_node(struct qspinlock *lock, struct mcs_spinlock *node)
 }
 
 /*
- * Wait for l->locked to become clear and acquire the lock;
+ * Wait for lock->locked to become clear and acquire the lock;
  * halt the vcpu after a short spin.
  * __pv_queued_spin_unlock() will wake us.
  *
@@ -447,9 +447,9 @@ pv_wait_head_or_lock(struct qspinlock *lock, struct mcs_spinlock *node)
 			 * when we observe _Q_SLOW_VAL in __pv_queued_spin_unlock()
 			 * we'll be sure to be able to observe our hash entry.
 			 *
-			 *   [S] <hash>                 [Rmw] l->locked == _Q_SLOW_VAL
-			 *       MB                           RMB
-			 * [RmW] l->locked = _Q_SLOW_VAL  [L] <unhash>
+			 *   [S] <hash>                    [Rmw] lock->locked == _Q_SLOW_VAL
+			 *       MB                              RMB
+			 * [RmW] lock->locked = _Q_SLOW_VAL  [L] <unhash>
 			 *
 			 * Matches the smp_rmb() in __pv_queued_spin_unlock().
 			 */
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] locking/qspinlock: Modify comments to adapt to code modification.
  2020-12-28  3:18 [PATCH] locking/qspinlock: Modify comments to adapt to code modification Xiangyang Yu
@ 2021-01-12 14:06 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2021-01-12 14:06 UTC (permalink / raw)
  To: Xiangyang Yu; +Cc: peterz, mingo, linux-kernel

On Mon, Dec 28, 2020 at 11:18:55AM +0800, Xiangyang Yu wrote:
> The function 'pv_wait_head_or_lock' comment is not modified in
> commit 625e88be1f41 ("locking/qspinlock: Merge 'struct __qspinlock'
> into 'struct qspinlock'"). Fix it.
> 
> Signed-off-by: Xiangyang Yu <yuxiangyang4@huawei.com>
> ---
>  kernel/locking/qspinlock_paravirt.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Acked-by: Will Deacon <will@kernel.org>

Will

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-12 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28  3:18 [PATCH] locking/qspinlock: Modify comments to adapt to code modification Xiangyang Yu
2021-01-12 14:06 ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.