]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: wait rename to finish
authorXiubo Li <xiubli@redhat.com>
Sat, 10 Apr 2021 04:52:24 +0000 (12:52 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 4 Jul 2023 04:57:03 +0000 (12:57 +0800)
commit11fb16df06ad61e228c17feedf00dfb85f0477d5
tree517794e2991af05923adcce22bc7d12a78196d35
parent0f303c01499b4da2f3ac076745f9cd93e1b23ca2
client: wait rename to finish

In rare case during the rename if another thread tries to lookup the
dst dentry, it may get an inconsistent result that both src dentry
and dst dentry will link to the same inode at the same time.

Will wait the rename to finish and try it again.

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