diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c
index 6ca08a36fb22723ccdcfb93b8b86c61141ed6c36..e47f9f8f60ce541be77b927c72fd47958be7e5fe 100644
--- a/lustre/mdc/mdc_request.c
+++ b/lustre/mdc/mdc_request.c
@@ -1568,6 +1568,7 @@ static int mdc_cleanup(struct obd_device *obd)
         OBD_FREE(cli->cl_setattr_lock, sizeof (*cli->cl_setattr_lock));
         OBD_FREE(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
 
+        ptlrpc_lprocfs_unregister_obd(obd);
         lprocfs_obd_cleanup(obd);
         ptlrpcd_decref();