Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-3810 obd: Cleanup client import if client_obd_setup fails
[fs/lustre-release.git]
/
lustre
/
osp
/
lwp_dev.c
diff --git
a/lustre/osp/lwp_dev.c
b/lustre/osp/lwp_dev.c
index
8b1653e
..
fce82a2
100644
(file)
--- 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);