Re: [PATCH] powerpc/spufs: Add rcu_read_lock() around fcheck()

From: Christoph Hellwig
Date: Tue Apr 28 2020 - 09:52:49 EST


On Tue, Apr 28, 2020 at 09:48:11PM +1000, Michael Ellerman wrote:
>
> This comes from fcheck_files() via fcheck().
>
> It's pretty clearly documented that fcheck() must be wrapped with
> rcu_read_lock(), so fix it.

But for this to actually be useful you'd need the rcu read lock until
your are done with the file (or got a reference).