]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: Revert "properly setup client_need_snapflush for snap inode"
authorYan, Zheng <zyan@redhat.com>
Mon, 26 Aug 2019 12:30:26 +0000 (20:30 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 17 Sep 2019 03:10:48 +0000 (11:10 +0800)
commit06b878c5bbb6e35b8428281fc648bc2316192ae7
tree4225bc07ede7b08ba5a574e390a3d590fe38aca9
parent6acd9e8b3558bf5650302e90ba6b546657cbe68e
mds: Revert "properly setup client_need_snapflush for snap inode"

This reverts commit 9fb61cd65895dbdb92cb46d24be8bf79ce57409d. That
commit handle a case that cap message flushes dirty caps and releases
the same same caps. MDCache::cow_inode() loses track of the released
caps and does not create snap inode.

Previous commit make mds track dirty snap caps as whole. Above case
become "cap message releases all write caps". If client can release
all wirte caps, it should have already sent all snap flush message.

 Conflicts:
src/mds/Locker.cc

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Locker.cc