Whamcloud - gitweb
b=2244
authorrread <rread>
Wed, 12 Nov 2003 21:16:28 +0000 (21:16 +0000)
committerrread <rread>
Wed, 12 Nov 2003 21:16:28 +0000 (21:16 +0000)
r=shaver

Pass force flag to ldlm_cleanup.

lustre/ldlm/ldlm_lib.c

index b1789af..8551c86 100644 (file)
@@ -187,7 +187,7 @@ int client_obd_setup(struct obd_device *obddev, obd_count len, void *buf)
 err_import:
         class_destroy_import(imp);
 err_ldlm:
-        ldlm_put_ref();
+        ldlm_put_ref(0);
 err:
         RETURN(rc);
 
@@ -209,7 +209,7 @@ int client_obd_cleanup(struct obd_device *obddev, int flags)
         class_destroy_import(cli->cl_import);
         cli->cl_import = NULL;
 
-        ldlm_put_ref();
+        ldlm_put_ref(flags & OBD_OPT_FORCE);
 
         RETURN(0);
 }
@@ -267,7 +267,7 @@ int client_connect_import(struct lustre_handle *dlm_handle,
 
         if (rc) {
 out_ldlm:
-                ldlm_namespace_free(obd->obd_namespace);
+                ldlm_namespace_free(obd->obd_namespace, 0);
                 obd->obd_namespace = NULL;
 out_disco:
                 cli->cl_conn_count--;
@@ -313,7 +313,7 @@ int client_disconnect_export(struct obd_export *exp, int failover)
                 /* obd_no_recov == local only */
                 ldlm_cli_cancel_unused(obd->obd_namespace, NULL,
                                        obd->obd_no_recov, NULL);
-                ldlm_namespace_free(obd->obd_namespace);
+                ldlm_namespace_free(obd->obd_namespace, obd->obd_no_recov);
                 obd->obd_namespace = NULL;
         }