Whamcloud - gitweb
b=2680
authorericm <ericm>
Fri, 6 Feb 2004 13:41:28 +0000 (13:41 +0000)
committerericm <ericm>
Fri, 6 Feb 2004 13:41:28 +0000 (13:41 +0000)
r=shaver

libluster send a special flag when connecting to server(mds/ost), which
will be recorded. thus liblustre will not be evicted when AST timeout.

lustre/ldlm/ldlm_lib.c

index ac81a44..552010a 100644 (file)
@@ -509,6 +509,10 @@ int target_handle_connect(struct ptlrpc_request *req, svc_handler_t handler)
         export = req->rq_export = class_conn2export(&conn);
         LASSERT(export != NULL);
 
+        /* request from liblustre? */
+        if (lustre_msg_get_op_flags(req->rq_reqmsg) | MSG_CONNECT_LIBCLIENT)
+                export->exp_libclient = 1;
+
         if (req->rq_connection != NULL)
                 ptlrpc_put_connection(req->rq_connection);
         if (export->exp_connection != NULL)