From: Casey Bodley Date: Sun, 11 Sep 2022 22:13:52 +0000 (-0400) Subject: rgw: rados service shuts down rados client on shutdown() X-Git-Tag: v18.1.0~336^2~17^2~3^2~1^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2afd9803461acf93544c0174583e8682d4f89002;p=ceph-ci.git rgw: rados service shuts down rados client on shutdown() if we leave the rados client running, it will keep delivering AioCompletions while we're shutting other things down this resolves a valgrind use-after-free where rgw::notify::Manager gets completions after its destruction Signed-off-by: Casey Bodley --- diff --git a/src/rgw/services/svc_rados.cc b/src/rgw/services/svc_rados.cc index 1617a2ec6c6..388f0b05cfc 100644 --- a/src/rgw/services/svc_rados.cc +++ b/src/rgw/services/svc_rados.cc @@ -45,6 +45,7 @@ void RGWSI_RADOS::shutdown() if (async_processor) { async_processor->stop(); } + rados.shutdown(); } void RGWSI_RADOS::stop_processor()