]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: complete internal op if killed
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 14 Nov 2023 18:50:53 +0000 (13:50 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Mar 2024 15:38:02 +0000 (11:38 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit ba3dac94e6a90ed76970fef89b1a82dcedb4ec2b)

src/mds/MDCache.cc

index 179c461f8072b6bed199529d68c74d8d0b76aed8..d2c118675745387fbf1fa3d051c9ab8409ad666c 100644 (file)
@@ -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);
   }
 }