]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: directly return just after responding the link request 44620/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 01:35:56 +0000 (09:35 +0800)
Fixes: https://tracker.ceph.com/issues/53750
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 14f9840dbf5ad288ae71af3311e3283f8f3964a6)

src/mds/Server.cc

index 618f1160de56982b888810482c6c89104851e82d..2970d099d8131d3ac2dbf9bef870bcb4ac7e7247 100644 (file)
@@ -6642,6 +6642,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, -CEPHFS_ENOENT);
+    return;
   }
 
   if ((!mdr->has_more() || mdr->more()->witnessed.empty())) {