linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* vfs-scale, d_revalidate from nfsd
@ 2011-01-13 14:03 J. R. Okajima
  2011-01-14  2:57 ` Nick Piggin
  0 siblings, 1 reply; 11+ messages in thread
From: J. R. Okajima @ 2011-01-13 14:03 UTC (permalink / raw)
  To: Nick Piggin; +Cc: linux-fsdevel, linux-kernel


NFSD calls filesystem's ->d_revalidate() with the parameter nd == NULL.
So every
	if (nd->flags & LOOKUP_RCU)
		return -ECHILD;
code which was added to ->d_revalidate() of FS which supports NFS
exporting will crash.

If we rewrite it as
	if (nd && (nd->flags & LOOKUP_RCU))
		return -ECHILD;
the problem may not occur.
But I am not sure whether lookup_one_len() call in NFSD support rcu-walk.


J. R. Okajima

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

end of thread, other threads:[~2011-02-15  5:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 14:03 vfs-scale, d_revalidate from nfsd J. R. Okajima
2011-01-14  2:57 ` Nick Piggin
2011-01-14  3:03   ` Al Viro
2011-01-14  3:12     ` Nick Piggin
2011-01-14  3:20       ` Al Viro
2011-01-14  3:22         ` Al Viro
2011-01-14  3:29         ` Nick Piggin
2011-01-14  3:38           ` Al Viro
2011-01-15  3:47       ` J. R. Okajima
2011-01-15 18:11         ` Nick Piggin
2011-02-15  5:07   ` J. R. Okajima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).