From: Alan Huang <mmpgouride@gmail.com>
To: paulmck@kernel.org
Cc: perfbook@vger.kernel.org, Alan Huang <mmpgouride@gmail.com>
Subject: [PATCH] CodeSamples/defer: Make hazard partition consistent with hazptr_thread_exit
Date: Thu, 20 Apr 2023 07:40:30 +0000 [thread overview]
Message-ID: <20230420074030.35246-1-mmpgouride@gmail.com> (raw)
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
---
CodeSamples/defer/hazptrtorture.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CodeSamples/defer/hazptrtorture.h b/CodeSamples/defer/hazptrtorture.h
index 29761e3d..acdd532b 100644
--- a/CodeSamples/defer/hazptrtorture.h
+++ b/CodeSamples/defer/hazptrtorture.h
@@ -99,7 +99,7 @@ void *hazptr_read_perf_test(void *arg)
{
int i;
int me = (long)arg;
- int base = me * K;
+ int base = smp_thread_id() * K;
long long n_reads_local = 0;
hazptr_head_t hh;
hazptr_head_t *hhp = &hh;
--
2.34.1
next reply other threads:[~2023-04-20 7:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-20 7:40 Alan Huang [this message]
2023-04-24 16:02 ` [PATCH] CodeSamples/defer: Make hazard partition consistent with hazptr_thread_exit Paul E. McKenney
2023-04-25 3:39 ` Akira Yokosawa
2023-04-25 13:32 ` Alan Huang
2023-04-25 18:36 ` 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=20230420074030.35246-1-mmpgouride@gmail.com \
--to=mmpgouride@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).