[lkml]   [2011]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectvfs-scale, d_revalidate from nfsd

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

 \ /
  Last update: 2011-01-13 15:07    [W:0.072 / U:3.416 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site