From cad87a4d002c9f51282218451f620fc798a5e14a Mon Sep 17 00:00:00 2001 From: shadow Date: Wed, 8 Apr 2009 08:31:44 +0000 Subject: [PATCH] *** empty log message *** --- lustre/ldlm/ldlm_lib.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 9544e3d..79db4b2 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -386,14 +386,15 @@ int client_connect_import(struct lustre_handle *dlm_handle, ENTRY; down_write(&cli->cl_sem); - rc = class_connect(dlm_handle, obd, cluuid); - if (rc) - GOTO(out_sem, rc); - if (cli->cl_conn_count > 0) GOTO(out_sem, rc = -EALREADY); cli->cl_conn_count++; + + rc = class_connect(dlm_handle, obd, cluuid); + if (rc) + GOTO(out_sem, rc); + *exp = class_conn2export(dlm_handle); if (obd->obd_namespace != NULL) -- 1.8.3.1