]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: skip putting inodes if map is empty
authorXiubo Li <xiubli@redhat.com>
Wed, 23 Dec 2020 08:01:39 +0000 (16:01 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 23 Dec 2020 08:23:43 +0000 (16:23 +0800)
commit476267c7589dbace63d2b793d5ed1d3f81eb4af6
tree0ea7ba6d55a85a7a955ea2f96444f68927dd1271
parent37d0e85d101e15c894ad912ec9fcd70ef3d515d9
client: skip putting inodes if map is empty

The delay_put_inodes() will be called by the tick() periodically
per second, and when the _unmount() is waiting for the inode_map
to be cleared, if the delay_i_release is empty the _unmount() will
be woke up too frequent that the dump_cache() won't get any chance
to be called.

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