From: Patrick Donnelly Date: Tue, 14 Nov 2023 18:50:53 +0000 (-0500) Subject: mds: complete internal op if killed X-Git-Tag: v20.0.0~2328^2~39 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba3dac94e6a90ed76970fef89b1a82dcedb4ec2b;p=ceph.git mds: complete internal op if killed Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 179c461f8072..d2c118675745 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -9938,6 +9938,10 @@ void MDCache::request_kill(const MDRequestRef& mdr) mdr->item_session_request.remove_myself(); } else { dout(10) << "request_kill " << *mdr << dendl; + if (mdr->internal_op_finish) { + mdr->internal_op_finish->complete(-CEPHFS_ECANCELED); + mdr->internal_op_finish = nullptr; + } request_cleanup(mdr); } }