]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: directly return just after responding the link request 44624/head
authorXiubo Li <xiubli@redhat.com>
Tue, 4 Jan 2022 03:18:53 +0000 (11:18 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 18 Jan 2022 08:43:32 +0000 (16:43 +0800)
Fixes: https://tracker.ceph.com/issues/53750
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 14f9840dbf5ad288ae71af3311e3283f8f3964a6)

 Conflicts:
src/mds/Server.cc
 - There is no CEPHFS_ENOENT in octopus.

src/mds/Server.cc

index 4100043164036d89ed5ed2a35d8d026504a5ad90..453c90a33e71b05a6f59aa71b4cc950fde8a4e38 100644 (file)
@@ -6404,6 +6404,7 @@ void Server::handle_client_link(MDRequestRef& mdr)
   if (targeti->get_projected_inode()->nlink == 0) {
     dout(7) << "target has no link, failing..." << dendl;
     respond_to_request(mdr, -ENOENT);
+    return;
   }
 
   if ((!mdr->has_more() || mdr->more()->witnessed.empty())) {