Whamcloud - gitweb
b=6063
[fs/lustre-release.git] / lustre / ldlm / ldlm_request.c
index 90c988a..012b31e 100644 (file)
@@ -1036,6 +1036,11 @@ static int replay_one_lock(struct obd_import *imp, struct ldlm_lock *lock)
                 size[1] = lock->l_lvb_len;
         }
         req->rq_replen = lustre_msg_size(buffers, size);
+        /* notify the server we've replayed all requests.
+         * also, we mark the request to be put on a dedicated
+         * queue to be processed after all request replayes.
+         * bug 6063 */
+        lustre_msg_set_flags(req->rq_reqmsg, MSG_REQ_REPLAY_DONE);
 
         LDLM_DEBUG(lock, "replaying lock:");