]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-wnbd: wait for the disk cleanup to complete 57697/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 09:14:15 +0000 (09:14 +0000)
commit9136cbdecb520def4fdfbbf696e1802037cac510
treebb0df1a0e1c29aab6adbb3019aead2cc1b371b98
parentef9bf7651800632d10bacef3c41f3432db769f40
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>
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