]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Drain async_processor request queue during shutdown 53472/head
authorroot <root@rhs-srv-14.storage-dev.lab.eng.bos.redhat.com>
Thu, 8 Sep 2022 16:21:50 +0000 (12:21 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 14 Oct 2023 07:58:28 +0000 (14:58 +0700)
commit93f31b70dfdd32a13ec3b170cccb89a153a14ff5
tree23dbbd01fa444134d81a5bd2b0069899a9a4f7ae
parent129959fe9d0ef9f0a81dc3637356e2bd1f39bfe8
rgw: Drain async_processor request queue during shutdown

Drain outstanding requests from the async_processor before stopping
the sync threads to avoid any use-after-free of their local variables.

Fixes: https://tracker.ceph.com/issues/49666
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 9b451763ff583f25c821aecf3446884c0fb95273)
src/rgw/rgw_rados.cc
src/rgw/services/svc_rados.cc
src/rgw/services/svc_rados.h