Re: [fget] 054aa8d439: will-it-scale.per_thread_ops -5.7% regression

From: Linus Torvalds
Date: Fri Dec 10 2021 - 20:03:07 EST


On Fri, Dec 10, 2021 at 3:30 PM Jann Horn <jannh@xxxxxxxxxx> wrote:
>
> One nit: The original implementation is using rcu_dereference_raw()
> because it can run in different contexts, but here plain
> rcu_dereference() would probably be more appropriate?

Well, I actually did that somewhat on purpose.

The RCU locking is right there, so doing the checking seems pointless.

That's particularly true since the whole point of the patch was "this
is truly critical, let's rewrite it to generate basically perfect
code"..

Linus