]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr / volumes: purge queue for async subvolume delete
authorVenky Shankar <vshankar@redhat.com>
Mon, 17 Jun 2019 12:21:43 +0000 (08:21 -0400)
committerVenky Shankar <vshankar@redhat.com>
Mon, 8 Jul 2019 03:58:16 +0000 (23:58 -0400)
commit483a2141fe8c9a58bc25a544412cdf5b047ad772
tree7948e5db2f411f400bc8a0d71065cd1c6339b21b
parent5c41e949af9acabd612b0644de0603e374b4b42a
mgr / volumes: purge queue for async subvolume delete

Support asynchronous subvolume deletes by handing off the delete
operation to a dedicated set of threads. A subvolume delete operation
renames the subvolume (subdirectory) to a unique trash path entry
and signals the set of worker threads to pick up entries from the
trash directory for background removal.

This commit implements a `thread pool` strategy as a class mixin.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/pybind/mgr/volumes/fs/purge_queue.py [new file with mode: 0644]
src/pybind/mgr/volumes/fs/subvolspec.py
src/pybind/mgr/volumes/fs/subvolume.py
src/pybind/mgr/volumes/fs/volume.py