Whamcloud - gitweb
LU-8900 mgs: use reference count for fs_db 15/24415/11
authorFan Yong <fan.yong@intel.com>
Tue, 27 Sep 2016 08:30:50 +0000 (16:30 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 31 Jan 2017 04:06:44 +0000 (04:06 +0000)
commitbfa1dbc969df6e9e10579fdb30ab653835463bd2
tree22488578e76498134be1328a143bb66aabc2f6b5
parent8b98c8a669d8d6c36f8bd767acba5e6f912360b7
LU-8900 mgs: use reference count for fs_db

That will prevent the in-using 'fs_db' being freed/erased
by others. Then the user (in subsequent patches) can hold
the 'fs_db' for a long time without holding related lock.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Icf5d548a2c51548aae2c05b1b34f003e725f4e02
Reviewed-on: https://review.whamcloud.com/24415
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/mgs/mgs_nids.c