This patch fixes the defect in ll_put_super() which uses profilenm
after running class_del_profile(profilenm).
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: Ida357c6c970f3b6bf1bbe0060a71d17e65323aa2
Reviewed-on: http://review.whamcloud.com/2799
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
class_manual_cleanup(obd);
}
- if (profilenm)
- class_del_profile(profilenm);
-
#ifdef HAVE_BDI_INIT
if (lsi->lsi_flags & LSI_BDI_INITIALIZED) {
bdi_destroy(&lsi->lsi_bdi);
LCONSOLE_WARN("client %s(%p) umount complete\n", profilenm, sb);
+ if (profilenm)
+ class_del_profile(profilenm);
+
cfs_module_put();
EXIT;