X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgs%2Flproc_mgs.c;h=65513fd7f2a5127ce84fdba429f41118a01e0580;hp=54f299b74ffabf975b3222a97c10dce396886337;hb=8421d161cc0f76ca4d635b8f9e6ebb1b5e7b9b47;hpb=eecb30869aa4d135a792e688b153362e9e052051 diff --git a/lustre/mgs/lproc_mgs.c b/lustre/mgs/lproc_mgs.c index 54f299b..65513fd 100644 --- a/lustre/mgs/lproc_mgs.c +++ b/lustre/mgs/lproc_mgs.c @@ -292,7 +292,9 @@ int lproc_mgs_del_live(struct mgs_device *mgs, struct fs_db *fsdb) if (!mgs->mgs_proc_live) return 0; - lprocfs_remove_proc_entry(fsdb->fsdb_name, mgs->mgs_proc_live); + /* didn't create the proc file for MGSSELF_NAME */ + if (!test_bit(FSDB_MGS_SELF, &fsdb->fsdb_flags)) + lprocfs_remove_proc_entry(fsdb->fsdb_name, mgs->mgs_proc_live); return 0; }