From: "Dmitriy V'jukov" <dvyukov@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: RCU: Number of grace-periods
Date: Wed, 11 Mar 2009 17:50:35 +0000 (UTC) [thread overview]
Message-ID: <loom.20090311T173526-125@post.gmane.org> (raw)
In-Reply-To: <20090311155024.GB7086@linux.vnet.ibm.com>
Paul E. McKenney <paulmck <at> linux.vnet.ibm.com> writes:
>
> Interesting thought -- but please keep in mind that acquire/release fences
> still allow subsequent stores to be reordered to precede earlier loads.
> This means that the first loads in the RCU critical section could be
> reordered to precede the final store of the rcu_read_lock() primitive.
Hmmm... Yes, I've missed this moment. I think you are right. The critical
synchronizing action of the __rcu_read_lock() is the store to the
__get_cpu_var(rcu_flipctr) (not a load!). So some code from the critical section
can hoist above the store to the __get_cpu_var(rcu_flipctr).
However the good question is how many grace-periods is required if code can
hoist above read_lock(), but can't sink below read_unlock()?
Good work for Relacy :) Nope, I've not yet tried to apply it...
--
Best regards,
Dmitriy V'jukov
prev parent reply other threads:[~2009-03-11 17:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 10:58 Dmitriy V'jukov
2009-03-11 15:50 ` Paul E. McKenney
2009-03-11 17:50 ` Dmitriy V'jukov [this message]
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=loom.20090311T173526-125@post.gmane.org \
--to=dvyukov@gmail.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®