Re: [PATCH v4 0/2] Toyrcu: replace racy plain accesses with READ_ONCE()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 01, 2019 at 10:22:23PM +0800, Junchang Wang wrote:
> 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

Queued and pushed, thank you both!

							Thanx, Paul

>  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(-)
> 
> -- 
> 2.7.4
> 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux