Whamcloud - gitweb
LU-14139 llite: simplify callback handling for async getattr
[fs/lustre-release.git] / lustre / llite / llite_lib.c
index 8aec4f8..03e9e39 100644 (file)
@@ -3213,6 +3213,13 @@ int ll_prep_inode(struct inode **inode, struct req_capsule *pill,
        if (rc != 0)
                GOTO(out, rc);
 
+       if (S_ISDIR(md.body->mbo_mode) && md.lmv && lmv_dir_striped(md.lmv) &&
+           it && it->it_extra_rpc_check) {
+               /* TODO: Check @lsm unchanged via @lsm_md_eq. */
+               it->it_extra_rpc_need = 1;
+               GOTO(out, rc = -EAGAIN);
+       }
+
        /*
         * clear default_lmv only if intent_getattr reply doesn't contain it.
         * but it needs to be done after iget, check this early because