Whamcloud - gitweb
LU-2729 mgs: fix cleanup of nonexistant MGSSELF_NAME proc file
authorJeff Mahoney <jeffm@suse.com>
Mon, 4 Feb 2013 22:05:02 +0000 (17:05 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 20 Feb 2013 07:41:04 +0000 (02:41 -0500)
commit8421d161cc0f76ca4d635b8f9e6ebb1b5e7b9b47
tree7f31d1a2959527e505ba105c329cbff6af048803
parenteecb30869aa4d135a792e688b153362e9e052051
LU-2729 mgs: fix cleanup of nonexistant MGSSELF_NAME proc file

The mgs teardown code gets invoked in the failure case but assumes
that the MGSSELF_NAME proc file has been created. If it hasn't been
created, the proc code issues a WARN_ON.

The setup code clears the FSDB_MGS_SELF from &fsdb->fsdb_flags when it
creates the proc file, so we can key off of that to decide whether to
remove it.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Change-Id: Idf58d1fa572eeced5dbaa72f03e38ee46a708166
Reviewed-on: http://review.whamcloud.com/5122
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/mgs/lproc_mgs.c