]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: cancel fragmenting dirfrags when cluster is degraded
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 3 May 2014 02:46:50 +0000 (10:46 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 6 May 2014 23:10:16 +0000 (07:10 +0800)
commit22abd7b00698bec773ed5f20c70bd5361dd0229c
treea74b6d15537cd9f44fc8e5d2397b734b0d9d2730
parent6e3501bd31a72f5ef68a8f1213ab2b2c7e92f853
mds: cancel fragmenting dirfrags when cluster is degraded

when cluster is degraded, acquiring locking can take long time.
It is not good to keep dirfrags in frozen state for a long time.

To allow cancelling fragment operation at any time, this commit
also reorganizes the codes that freeze/fetch dirfrags.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc
src/mds/MDCache.h