]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: move dirty_list to MetaSession 44255/head
authorXiubo Li <xiubli@redhat.com>
Mon, 13 Dec 2021 04:45:40 +0000 (12:45 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 13 Dec 2021 09:20:06 +0000 (17:20 +0800)
commitafe4e94185b3498161eb500ea7315309b95111b1
tree7a29551446ecd877ea9cd2fa926516833876ea41
parentd4c175cd5e0f97ca75ee9e62592ac41e3da9c805
client: move dirty_list to MetaSession

Then we can easily use the last dirty cap to flush the mdlog. This
will be useful when syncing the whole filesystem.

The delayed_list will hold both dirty and release caps. The dirty
caps will be checked by the dirty_list in each session and it makes
no sense to flush the release caps when syncing the filesystem.

Fixes: https://tracker.ceph.com/issues/44916
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc
src/client/Client.h
src/client/Inode.cc
src/client/MetaSession.h