]> 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, 18 Jul 2023 02:56:56 +0000 (10:56 +0800)
commit540c292f2a58eef6b8e6fe8cba11cf039e47ad11
tree93d7723daff85fa10248dea3fcb5eff8bdf1701b
parent042cd51a2f0b8926363c2237e303a8df25c73519
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)
src/client/Client.cc
src/client/Client.h
src/client/Dentry.h