X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Flwp_dev.c;h=fce82a23f6e1b6ba6e11ed5bf5c88712e04f07b9;hp=8b1653ee8fda9757eff369ebe03c75c84974df8b;hb=911b6167a37c2dba835baab4e100dcf206c03113;hpb=11db1a551172f596d1d284e8496530f9ce24ac81 diff --git a/lustre/osp/lwp_dev.c b/lustre/osp/lwp_dev.c index 8b1653e..fce82a2 100644 --- a/lustre/osp/lwp_dev.c +++ b/lustre/osp/lwp_dev.c @@ -145,6 +145,7 @@ out: lustre_cfg_free(lcfg); if (rc) client_obd_cleanup(lwp->lpd_obd); + RETURN(rc); } @@ -321,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);