Re: [PATCH RFC 0/7] rcu: v2 Inlinable preemptible rcu_read_lock() and rcu_read_unlock()

From: Linus Torvalds
Date: Sat Apr 14 2012 - 12:58:25 EST


On Sat, Apr 14, 2012 at 9:19 AM, Paul E. McKenney
<paulmck@xxxxxxxxxxxxxxxxxx> wrote:
>
> This series is version two of the inlinable versions of preemptible
> RCU's __rcu_read_lock() and __rcu_read_unlock().  The first version may
> be found at https://lkml.org/lkml/2012/3/25/94.  The individual commits
> in this new series are as follows:

Ok, I'm looking at code generation changes for this now, and sadly (or
not) all the changes to the selinux code have actually made the RCU
overhead that made me notice this issue originally much less
noticeable because we inline the right things etc, and that helped
with some of the problems that the rcu callsites had.

The fact that we don't have to indirect through "current" does seem to
make the code much simpler, though. So hopefully the actual rcu
unlocking code itself is better. But that was just under 1% of the
benchmark cost, so I was hoping that the call sites would be more
noticeable.

I'll see if it boots and what it does to my profiles and
microbenchmark, though.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/