]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: check ongoing catter-gather process before capping log
authorYan, Zheng <zyan@redhat.com>
Thu, 21 Sep 2017 02:56:07 +0000 (10:56 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 21 Sep 2017 03:05:59 +0000 (11:05 +0800)
commit6ea85b3f8e787d341b49d75f7df5003300d8c4c3
tree237309be85ad3949a9dcfde6c1de8d6261fb1e33
parent82e63350c2f949ae9c967d4036e6194d20c6392a
mds: check ongoing catter-gather process before capping log

When deactivating mds, MDLog::trim() may start scatter-gather
process on mdsdir inode. Locker::scatter_writebehind() submits
log entry. So mds should make sure there is no scatter-gather
before capping log.

Fixes: http://tracker.ceph.com/issues/21467
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc