From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>,
Michael Wang <wangyun@linux.vnet.ibm.com>,
Dave Jones <davej@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: RCU idle CPU detection is broken in linux-next
Date: Wed, 26 Sep 2012 09:26:49 -0700 [thread overview]
Message-ID: <20120926162649.GB2467@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAFTL4hwuQ-smZiH46KCqAw7+01J7aLmthbjL5_Mg9kHJ4CBzuw@mail.gmail.com>
On Wed, Sep 26, 2012 at 04:56:55PM +0200, Frederic Weisbecker wrote:
> 2012/9/25 Paul E. McKenney <paulmck@linux.vnet.ibm.com>:
> > On Tue, Sep 25, 2012 at 01:59:26PM +0200, Frederic Weisbecker wrote:
> >> Given that we have:
> >>
> >> rcu_irq_enter()
> >> rcu_user_exit()
> >> rcu_user_enter()
> >> rcu_irq_exit()
> >
> > Indeed, the code to deal with irq misnestings won't like that at all.
> > And we are in the kernel between rcu_user_exit() and rcu_user_enter()
> > (right?), so we could in fact see irq misnestings.
>
> Exactly.
>
> >> And we already have rcu_user_exit_after_irq(), this starts to be confusing
> >> if we allow that nesting. Although if we find a solution that, in the end,
> >> merge rcu_user_exit() with rcu_user_exit_after_irq() and same for the enter version,
> >> this would probably be a good thing. Provided this doesn't involve some more
> >> complicated rdtp->dyntick_nesting trickies nor more overhead.
> >>
> >> Otherwise we could avoid to call rcu_user_* when we are in an irq. When we'll have
> >> the user_hooks layer, we can perhaps manage that from that place. For
> >> now may be we can return after in_interrupt() in the rcu user apis.
> >
> > This last sounds best.
>
> Ok.
>
> > My main concern is irq misnesting. We might need to do something ugly
> > like record the interrupt nesting level at rcu_user_exit() and restore
> > it at rcu_user_enter(). Sigh!!!
>
> Right, but that doesn't seem to apply in x86? I suggest we start
> simple and think
> about some wider solution when more architecture implement this.
Fair enough -- for one thing, we will better understand what is required
when the problems are actually encountered. Which will hopefully be
sooner rather than later. ;-)
Thanx, Paul
next prev parent reply other threads:[~2012-09-26 16:45 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-12 17:56 RCU idle CPU detection is broken in linux-next Sasha Levin
2012-09-19 15:39 ` Paul E. McKenney
2012-09-19 16:35 ` Sasha Levin
2012-09-19 17:06 ` Paul E. McKenney
2012-09-19 22:27 ` Sasha Levin
2012-09-20 7:33 ` Michael Wang
2012-09-20 7:44 ` Sasha Levin
2012-09-20 8:14 ` Michael Wang
2012-09-20 15:23 ` Paul E. McKenney
2012-09-21 9:30 ` Sasha Levin
2012-09-21 12:13 ` Paul E. McKenney
2012-09-21 13:26 ` Sasha Levin
2012-09-21 15:12 ` Paul E. McKenney
2012-09-21 15:18 ` Sasha Levin
2012-09-22 8:26 ` Sasha Levin
2012-09-22 15:09 ` Paul E. McKenney
2012-09-22 15:20 ` Paul E. McKenney
2012-09-22 15:40 ` Sasha Levin
2012-09-22 15:56 ` Paul E. McKenney
2012-09-22 17:50 ` Sasha Levin
2012-09-22 21:27 ` Paul E. McKenney
2012-09-23 0:21 ` Paul E. McKenney
2012-09-23 5:39 ` Sasha Levin
2012-09-24 21:29 ` Frederic Weisbecker
2012-09-24 22:47 ` Sasha Levin
2012-09-24 22:54 ` Sasha Levin
2012-09-24 23:06 ` Frederic Weisbecker
2012-09-24 23:10 ` Sasha Levin
2012-09-24 23:35 ` Frederic Weisbecker
2012-09-24 23:41 ` Frederic Weisbecker
2012-09-25 4:04 ` Paul E. McKenney
2012-09-25 11:59 ` Frederic Weisbecker
2012-09-25 13:04 ` Paul E. McKenney
2012-09-26 14:56 ` Frederic Weisbecker
2012-09-26 16:26 ` Paul E. McKenney [this message]
2012-09-25 12:06 ` Frederic Weisbecker
2012-09-25 18:28 ` Sasha Levin
2012-09-25 18:36 ` Paul E. McKenney
2012-09-26 15:46 ` Frederic Weisbecker
2012-09-26 16:59 ` Paul E. McKenney
2012-09-26 14:58 ` Frederic Weisbecker
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=20120926162649.GB2467@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=davej@redhat.com \
--cc=fweisbec@gmail.com \
--cc=levinsasha928@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wangyun@linux.vnet.ibm.com \
/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 NNTP newsgroup(s).