All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Johann Klähn" <johann@jklaehn.de>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org
Subject: [PATCH-perfbook 2/4] defer: Remove leftover manipulation of bottom bit in hazptr.c
Date: Tue,  1 Feb 2022 21:07:49 +0100	[thread overview]
Message-ID: <20220201200751.23589-2-johann@jklaehn.de> (raw)
In-Reply-To: <20220201200751.23589-1-johann@jklaehn.de>

The bottom bit in this implementation is not (no longer?) used to mark deleted
elements, as is also pointed out in one of the quick questions.

Signed-off-by: Johann Klähn <johann@jklaehn.de>
---
 CodeSamples/defer/hazptr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CodeSamples/defer/hazptr.c b/CodeSamples/defer/hazptr.c
index 2621d407..b84391f4 100644
--- a/CodeSamples/defer/hazptr.c
+++ b/CodeSamples/defer/hazptr.c
@@ -119,7 +119,7 @@ void hazptr_scan()				//\lnlbl{scan:b}
 							//\fcvblank
 		if (!hp)
 			continue;
-		plist[psize++] = (hazptr_head_t *)(hp & ~0x1UL);
+		plist[psize++] = (hazptr_head_t *)hp;
 	}					//\lnlbl{scan:loop:e}
 	smp_mb(); /* ensure freeing happens after scan. */ //\lnlbl{scan:mb2}
 	
-- 
2.34.1


  reply	other threads:[~2022-02-01 20:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-01 20:07 [PATCH-perfbook 1/4] cpu: Fix typo Johann Klähn
2022-02-01 20:07 ` Johann Klähn [this message]
2022-02-01 20:07 ` [PATCH-perfbook 3/4] glossary: " Johann Klähn
2022-02-01 20:07 ` [PATCH-perfbook 4/4] glossary: Use more common definition of RAII Johann Klähn
2022-02-01 20:38   ` Paul E. McKenney
2022-02-01 22:16     ` Johann Klähn
2022-02-03 23:34       ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220201200751.23589-2-johann@jklaehn.de \
    --to=johann@jklaehn.de \
    --cc=paulmck@kernel.org \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.