From: ericm Date: Fri, 6 Feb 2004 13:41:28 +0000 (+0000) Subject: b=2680 X-Git-Tag: v1_7_110~1^13~31 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=419e0f5d604253a7281da85f7bd2e8455c345f3b;p=fs%2Flustre-release.git 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. --- 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)