Thread (7 messages) 7 messages, 5 authors, 2025-09-06

Re: [PATCH] powerpc/qspinlock: Add spinlock contention tracepoint

From: Nysal Jan K.A. <hidden>
Date: 2025-07-30 08:33:52
Also in: lkml

On Wed, Jul 30, 2025 at 08:46:28AM +0200, Christophe Leroy wrote:

Le 25/07/2025 à 10:14, Nysal Jan K.A. a écrit :
quoted
@@ -718,16 +720,17 @@ void queued_spin_lock_slowpath(struct qspinlock *lock)
  	if (IS_ENABLED(CONFIG_PARAVIRT_SPINLOCKS) && is_shared_processor()) {
  		if (try_to_steal_lock(lock, true)) {
  			spec_barrier();
-			return;
+		} else {
+			queued_spin_lock_mcs_queue(lock, true);
If I read correctly, now all this is single line so you have to drop the
braces , see
https://docs.kernel.org/process/coding-style.html#placing-braces-and-spaces
Will fix the coding style in v2. Thanks for the review.

--Nysal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help