]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: wait rename to finish 52505/head
authorXiubo Li <xiubli@redhat.com>
Sat, 10 Apr 2021 04:52:24 +0000 (12:52 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 18 Jul 2023 03:03:16 +0000 (11:03 +0800)
commit8a644848882d8c1fbb998e9a41e79329eb350b27
treeeccdcfde07b0ae7d6bf75386af9b8e4ef6453d63
parent014f9fb234a0e3449a93fef3d00644137e6c76b1
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>
(cherry picked from commit 11fb16df06ad61e228c17feedf00dfb85f0477d5)

Conflicts:
src/client/Client.h: a minor conflict.
src/client/Client.cc
src/client/Client.h
src/client/Dentry.h