public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RCU-isms in fs/nfs/delegation.c
@ 2010-04-19 15:33 David Howells
  2010-04-19 17:32 ` Trond Myklebust
  0 siblings, 1 reply; 5+ messages in thread
From: David Howells @ 2010-04-19 15:33 UTC (permalink / raw)
  To: Trond.Myklebust, paulmck; +Cc: linux-nfs, linux-kernel, David Howells


I'm trying to redo my NFS RCU warning fixup patch on top of Paul's patches,
and I've found a small potential bug: nfs_inode_reclaim_delegation() doesn't
use the appropriate accessors/locks to protect NFS_I(inode)->delegation, and
nor does it use such to protect *delegation that I can see.  It just
overwrites the record.

Furthermore, for consistency's sake, it should also protect accesses to
delegation->cred within that function.

Trond: can you confirm that both NFS_I(inode)->delegation and delegation->cred
should be considered RCU-protected pointers?

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-20 12:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19 15:33 RCU-isms in fs/nfs/delegation.c David Howells
2010-04-19 17:32 ` Trond Myklebust
2010-04-20  8:48   ` David Howells
2010-04-20 12:29     ` Trond Myklebust
2010-04-20 12:49       ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox