From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Joe Perches <joe@perches.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
Dave Jones <davej@redhat.com>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Josh Triplett <josh@freedesktop.org>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: lots of brief rcu stalls.
Date: Wed, 4 Dec 2013 18:51:47 -0800 [thread overview]
Message-ID: <20131205025147.GN15492@linux.vnet.ibm.com> (raw)
In-Reply-To: <1386210965.30493.84.camel@joe-AO722>
On Wed, Dec 04, 2013 at 06:36:05PM -0800, Joe Perches wrote:
> On Wed, 2013-12-04 at 18:18 -0800, Eric Dumazet wrote:
> > On Wed, 2013-12-04 at 16:16 -0800, Paul E. McKenney wrote:
> > > + ULONG_CMP_GE(ACCESS_ONCE(jiffies), rdp->rsp->jiffies_resched)) {
>
> perhaps time_before_eq
>
> > jiffies should not need ACCESS_ONCE(), right ?
> >
> > It is one of the few variables marked with volatile keyword.
>
> It does seem redundant
>
> $ git grep -n "ACCESS_ONCE(jiffies)"
> kernel/rcu/torture.c:1354: jiffies_snap = ACCESS_ONCE(jiffies);
> kernel/rcu/torture.c:1363: jiffies_snap = ACCESS_ONCE(jiffies);
> kernel/rcu/tree.c:820: unsigned long j = ACCESS_ONCE(jiffies);
> kernel/rcu/tree.c:975: j = ACCESS_ONCE(jiffies);
I took care of the first four, plus one more that I have in my local tree.
Thanx, Paul
> kernel/sched/core.c:2324: unsigned long next, now = ACCESS_ONCE(jiffies);
> kernel/sched/proc.c:536: unsigned long curr_jiffies = ACCESS_ONCE(jiffies);
> kernel/sched/proc.c:558: unsigned long curr_jiffies = ACCESS_ONCE(jiffies);
>
>
next prev parent reply other threads:[~2013-12-05 2:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-04 23:28 lots of brief rcu stalls Dave Jones
2013-12-05 0:16 ` Paul E. McKenney
2013-12-05 1:22 ` Dave Jones
2013-12-05 2:44 ` Paul E. McKenney
2013-12-05 16:49 ` Paul E. McKenney
2013-12-05 17:15 ` Dave Jones
2013-12-05 17:31 ` Paul E. McKenney
2013-12-05 2:18 ` Eric Dumazet
2013-12-05 2:36 ` Joe Perches
2013-12-05 2:51 ` Paul E. McKenney [this message]
2013-12-05 2:43 ` 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=20131205025147.GN15492@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=davej@redhat.com \
--cc=eric.dumazet@gmail.com \
--cc=joe@perches.com \
--cc=josh@freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.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