Re: [PATCH] NFS: Fix RCU warnings in nfs_inode_return_delegation_noreclaim() [ver #2]

Eric Dumazet
2010-03-30T17:04:39Z

Le mardi 30 mars 2010 =C3=A0 09:49 -0700, Paul E. McKenney a =C3=A9crit=
:
> On Tue, Mar 30, 2010 at 05:39:11PM +0100, David Howells wrote:
> > Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:
> >=20
> > > Scrap this one -- Arnd has it covered, under the much better name
> > > of rcu_dereference_const().
> >=20
> > Not convinced of that name either. That sounds like the RCU derefe=
rence of
> > constant (R/O) data.
>=20
> Which it is, as long as the lock is held.
>=20
> But what name would you suggest?
>=20

Maybe use 'protected' word or something like that, or 'owned', ...

rcu_dereference_protected() or rcu_dereference_owned()