void ptlrpc_lprocfs_unregister_obd(struct obd_device *obd)
{
+ /* cleanup first to allow concurrent access to device's
+ * stats via debugfs to complete safely
+ */
+ lprocfs_obd_cleanup(obd);
+
if (obd->obd_svc_procroot)
lprocfs_remove(&obd->obd_svc_procroot);