* The MDS needs to send lock requests to itself, but it doesn't want to
* go through the whole hassle of setting up proper connections. Soon,
* these will just be function calls, but until I have the time, just
- * send these requests at level NEW, so that they go through.
+ * set this connection to level FULL so that they go through.
*
* Since the MDS is the only user of PLAIN locks right now, we can use
* that to distinguish. Sorry. */
if (type == LDLM_PLAIN)
- req->rq_level = LUSTRE_CONN_NEW;
+ conn->c_level = LUSTRE_CONN_FULL;
rc = ptlrpc_queue_wait(req);
/* FIXME: status check here? */
req->rq_export = export;
export->exp_connection = req->rq_connection;
+#warning Peter: is this the right place to upgrade the server connection level?
+ req->rq_connection->c_level = LUSTRE_CONN_FULL;
RETURN(0);
}