Re: [RFC][PATCH 07/10] orangefs: Use RCU for destroy_inode

From: Linus Torvalds
Date: Sun Feb 26 2017 - 20:20:54 EST


On Sun, Feb 26, 2017 at 4:34 PM, Mike Marshall <hubcap@xxxxxxxxxxxx> wrote:
> Since Orangefs uses ref-walk, not rcu-walk, this patch with call_rcu
> has seemed weird to me.

Even if orangefs never really allows RCU walking, the VFS layer will
look up dentries - and look at their inodes - from RCU. It will then
call into the filesystem

So even if orangefs always returned ECHILD (it doesn't - it has a
timeout) - we'd be following the dentry inode pointer in jus a RCU
read region.

Linus