From: Xiubo Li Date: Tue, 4 Jan 2022 03:18:53 +0000 (+0800) Subject: mds: directly return just after responding the link request X-Git-Tag: v15.2.17~109^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44624%2Fhead;p=ceph.git mds: directly return just after responding the link request Fixes: https://tracker.ceph.com/issues/53750 Signed-off-by: Xiubo Li (cherry picked from commit 14f9840dbf5ad288ae71af3311e3283f8f3964a6) Conflicts: src/mds/Server.cc - There is no CEPHFS_ENOENT in octopus. --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 410004316403..453c90a33e71 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -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())) {