Re: [PATCH] fs: Safe rcu access to hlist.

From: Luc Van Oostenryck
Date: Mon Nov 20 2017 - 15:58:11 EST


On Mon, Nov 20, 2017 at 12:42:53PM -0800, Matthew Wilcox wrote:
>
> I disagree. The notion of whether a pointer is protected by RCU or not
> is definitely not transient.

Sure. But what about the memory it points to?
It's just 'normal' kernel memory, there is nowhere
something like some 'RCU memory', right?

And the memory accessed through a __rcu annotated
pointer can be legally be accessed with normal
memory operation, because it's only the pointer that
is concerned by the annotation?

-- Luc