Whamcloud - gitweb
File I/O fix: move the lock name space to the filter itself.
[fs/lustre-release.git] / lustre / ost / ost_handler.c
index 1962279..14b8517 100644 (file)
@@ -545,11 +545,6 @@ static int ost_setup(struct obd_device *obddev, obd_count len, void *buf)
                 GOTO(error_dec, err = -EINVAL);
         }
 
-        obddev->obd_namespace =
-                ldlm_namespace_new("ost", LDLM_NAMESPACE_SERVER);
-        if (obddev->obd_namespace == NULL)
-                LBUG();
-
         ost->ost_service = ptlrpc_init_svc(64 * 1024, OST_REQUEST_PORTAL,
                                            OSC_REPLY_PORTAL, "self",ost_handle);
         if (!ost->ost_service) {
@@ -596,8 +591,6 @@ static int ost_cleanup(struct obd_device * obddev)
                 RETURN(-EINVAL);
         }
 
-        ldlm_namespace_free(obddev->obd_namespace);
-
         MOD_DEC_USE_COUNT;
         RETURN(0);
 }