From ba3dac94e6a90ed76970fef89b1a82dcedb4ec2b Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 14 Nov 2023 13:50:53 -0500 Subject: [PATCH] mds: complete internal op if killed Signed-off-by: Patrick Donnelly --- src/mds/MDCache.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 179c461f8072b..d2c1186757453 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); } } -- 2.39.5