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: v16.2.8~238^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44620%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) --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 618f1160de56..2970d099d813 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -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())) {