Whamcloud - gitweb
LU-4906 llite: read page from LMV/MDC for readdir
[fs/lustre-release.git] / lustre / include / lustre_mdc.h
index 040b975..9067b6a 100644 (file)
@@ -107,7 +107,7 @@ static inline void mdc_get_rpc_lock(struct mdc_rpc_lock *lck,
        ENTRY;
 
        if (it != NULL && (it->it_op == IT_GETATTR || it->it_op == IT_LOOKUP ||
-                          it->it_op == IT_LAYOUT))
+                          it->it_op == IT_LAYOUT || it->it_op == IT_READDIR))
                return;
 
        /* This would normally block until the existing request finishes.
@@ -145,7 +145,7 @@ static inline void mdc_put_rpc_lock(struct mdc_rpc_lock *lck,
                                    struct lookup_intent *it)
 {
        if (it != NULL && (it->it_op == IT_GETATTR || it->it_op == IT_LOOKUP ||
-                          it->it_op == IT_LAYOUT))
+                          it->it_op == IT_LAYOUT || it->it_op == IT_READDIR))
                goto out;
 
        if (lck->rpcl_it == MDC_FAKE_RPCL_IT) { /* OBD_FAIL_MDC_RPCS_SEM */