From 419e0f5d604253a7281da85f7bd2e8455c345f3b Mon Sep 17 00:00:00 2001 From: ericm Date: Fri, 6 Feb 2004 13:41:28 +0000 Subject: [PATCH] b=2680 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index ac81a44..552010a 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -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) -- 1.8.3.1