Toyrcu: replace racy plain accesses with READ_ONCE()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 0 repliesNew
- v32 patches 5 repliesSuperseded
- v23 patches 5 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 2 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rcu: Use READ_ONCE() and WRITE_ONCE() for shared variable rcu_gp_ctrCodeSamples/ CodeSamples/ appendix/ | +74 | 0 replies | |
| 2/2 | rcu_qs: Use READ_ONCE() AND WRITE_ONCE() for shared variable rcu_gp_ctrCodeSamples/ CodeSamples/ appendix/ | +78 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Akira Yokosawa |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/2] Toyrcu: replace racy plain accesses with READ_ONCE()
Hi list,
Variable rcu_gp_ctr is accessed concurrently by the updater and readers, and hence should be protected by READ_ONCE() and WRITE_ONCE(). This patch set updates rcu and rcu_qs.
The tex file is updated accordingly. And a new scheme, which is suggested by Akira and can extract code snippets from the source code, has been applied.
Please note that rcu_nest also needs to be updated. I will first make sure that I'm fully understand how it works, and then submit a patch for it.
Junchang Wang (2):
rcu: Use READ_ONCE() and WRITE_ONCE() for shared variable rcu_gp_ctr
rcu_qs: Use READ_ONCE() AND WRITE_ONCE() for shared variable
rcu_gp_ctr
CodeSamples/defer/rcu.c | 34 +++++--- CodeSamples/defer/rcu.h | 21 +++-- CodeSamples/defer/rcu_qs.c | 31 ++++--- CodeSamples/defer/rcu_qs.h | 42 ++++----- appendix/toyrcu/toyrcu.tex | 206 +++++++++++++++++---------------------------- 5 files changed, 152 insertions(+), 182 deletions(-)
Signature · 1 line
2.7.4