* GPL HEADER END
*/
/*
- * Copyright (c) 2012 Intel Corporation
+ * Copyright (c) 2013, Intel Corporation.
* Use is subject to license terms.
*
* lustre/osp/lwp_dev.c
* Author: <di.wang@intel.com>
* Author: <yawei.niu@intel.com>
*/
-#ifndef EXPORT_SYMTAB
-# define EXPORT_SYMTAB
-#endif
#define DEBUG_SUBSYSTEM S_OST
#include <obd_class.h>
lustre_cfg_free(lcfg);
if (rc)
client_obd_cleanup(lwp->lpd_obd);
+
RETURN(rc);
}
.ldo_process_config = lwp_process_config,
};
-static struct lprocfs_vars lprocfs_lwp_module_vars[] = {
- { "num_refs", lprocfs_rd_numrefs, 0, 0 },
- { 0 }
-};
-
-static struct lprocfs_vars lprocfs_lwp_obd_vars[] = {
+static struct lprocfs_seq_vars lprocfs_lwp_obd_vars[] = {
{ 0 }
};
-void lprocfs_lwp_init_vars(struct lprocfs_static_vars *lvars)
-{
- lvars->module_vars = lprocfs_lwp_module_vars;
- lvars->obd_vars = lprocfs_lwp_obd_vars;
-}
-
int lwp_init0(const struct lu_env *env, struct lwp_device *lwp,
struct lu_device_type *ldt, struct lustre_cfg *cfg)
{
- struct lprocfs_static_vars lvars = { 0 };
int rc;
ENTRY;
RETURN(rc);
}
- lprocfs_lwp_init_vars(&lvars);
- if (lprocfs_obd_setup(lwp->lpd_obd, lvars.obd_vars) == 0)
+ lwp->lpd_obd->obd_vars = lprocfs_lwp_obd_vars;
+ if (lprocfs_seq_obd_setup(lwp->lpd_obd) == 0)
ptlrpc_lprocfs_register_obd(lwp->lpd_obd);
RETURN(0);
imp->imp_rq_pool = NULL;
}
- obd_cleanup_client_import(m->lpd_obd);
-
LASSERT(m->lpd_obd);
ptlrpc_lprocfs_unregister_obd(m->lpd_obd);
lprocfs_obd_cleanup(m->lpd_obd);