Whamcloud - gitweb
ORNL-27: Cancel on completion lock on the MGS
[fs/lustre-release.git] / lustre / ldlm / ldlm_request.c
index 5bffd30..cf1ba95 100644 (file)
@@ -861,6 +861,7 @@ int ldlm_cli_enqueue(struct obd_export *exp, struct ptlrpc_request **reqp,
         lock->l_conn_export = exp;
         lock->l_export = NULL;
         lock->l_blocking_ast = einfo->ei_cb_bl;
+        lock->l_flags |= (*flags & LDLM_FL_NO_LRU);
 
         /* Dump lock data into the request buffer */
         body = req_capsule_client_get(&req->rq_pill, &RMF_DLM_REQ);