X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Fosp_dev.c;h=dc3249b0a50d9d20674863a7e1f2789181569df8;hp=f45cd746071ec3ee8377641bf28d27d598d419e9;hb=3cce65712d94cffe8f1626545845b95b88aef672;hpb=ff5eb304fa371d879da38621fac3aec7d4548a5e diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index f45cd74..dc3249b 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -1339,7 +1339,6 @@ static struct lu_device *osp_device_fini(const struct lu_env *env, } LASSERT(osp->opd_obd); - osp_tunables_fini(osp); rc = client_obd_cleanup(osp->opd_obd); if (rc != 0) { @@ -1347,6 +1346,8 @@ static struct lu_device *osp_device_fini(const struct lu_env *env, RETURN(ERR_PTR(rc)); } + osp_tunables_fini(osp); + ptlrpcd_decref(); RETURN(NULL);