]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: check ongoing catter-gather process before capping log 17852/head
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:29:01 +0000 (11:29 +0800)
commit97ab78548d26f980ead8dc5c986304d2cfd3568d
treed3022a1f27fdf90e151fe3fc07787cff803ebc00
parent0132a275aa86ca80bf1dcacd9905243257317e6c
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