]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: directly return just after responding the link request 44451/head
authorXiubo Li <xiubli@redhat.com>
Tue, 4 Jan 2022 03:18:53 +0000 (11:18 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 13 Jan 2022 12:55:49 +0000 (20:55 +0800)
Fixes: https://tracker.ceph.com/issues/53750
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/Server.cc

index dbeb882c74c44f12147ef72a071ecf93478fe729..b0113d73fb50f9c8868207baa97a073a258b418c 100644 (file)
@@ -6692,6 +6692,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())) {