X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Flwp_dev.c;h=fce82a23f6e1b6ba6e11ed5bf5c88712e04f07b9;hp=b3ca5d27264407c50e04662d225a19b751c592fb;hb=911b6167a37c2dba835baab4e100dcf206c03113;hpb=98060d83459ba10409f295898f0ec917f938b4d3 diff --git a/lustre/osp/lwp_dev.c b/lustre/osp/lwp_dev.c index b3ca5d2..fce82a2 100644 --- a/lustre/osp/lwp_dev.c +++ b/lustre/osp/lwp_dev.c @@ -32,9 +32,6 @@ * Author: * Author: */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OST #include @@ -148,6 +145,7 @@ out: lustre_cfg_free(lcfg); if (rc) client_obd_cleanup(lwp->lpd_obd); + RETURN(rc); } @@ -324,8 +322,6 @@ static struct lu_device *lwp_device_fini(const struct lu_env *env, 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);