Whamcloud - gitweb
LU-2388 statahead: don't statahead if it's stopped
[fs/lustre-release.git] / lustre / llite / llite_internal.h
index ea34779..c8f0f3b 100644 (file)
@@ -1298,6 +1298,10 @@ ll_statahead_enter(struct inode *dir, struct dentry **dentryp, int only_unplug)
         if (lli->lli_opendir_pid != cfs_curproc_pid())
                 return -EAGAIN;
 
+       /* statahead has been stopped */
+       if (lli->lli_opendir_key == NULL)
+               return -EAGAIN;
+
         ldd = ll_d2d(*dentryp);
         /*
          * When stats a dentry, the system trigger more than once "revalidate"