]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-wnbd: wait for the disk cleanup to complete 57803/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 24 May 2024 10:03:11 +0000 (10:03 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 31 May 2024 11:45:29 +0000 (11:45 +0000)
commiteaa0ba00a3e8fa73bfb5d516a7743f6e3719cc01
treeb8dc0719b2dc80d66bb898a2b2d608a43aec8304
parentf1316ee19712baed461a5bda1a1cefe32b1d255a
rbd-wnbd: wait for the disk cleanup to complete

The WNBD disk removal workflow is asynchronous, which is why we'll
need to wait for the cleanup to complete when stopping the service.

The "disconnect_all_mappings" function is moved to
RbdMappingDispatcher::stop, allowing us to access the mapping list
more easily and reject new mappings after a stop has been requested.

While at it, we'll log service stop requests.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 9136cbdecb520def4fdfbbf696e1802037cac510)
src/common/win32/service.cc
src/tools/rbd_wnbd/rbd_mapping.cc
src/tools/rbd_wnbd/rbd_mapping.h
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h