]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: purge thread uses new async interface
authorVenky Shankar <vshankar@redhat.com>
Wed, 4 Dec 2019 04:49:12 +0000 (23:49 -0500)
committerVenky Shankar <vshankar@redhat.com>
Fri, 31 Jan 2020 10:09:14 +0000 (05:09 -0500)
commitf16cc1e8eebb0868a1e07c25f8d8e4656b11b7bf
treedb5515c515d681afd09b233c0f6a97d218000c2f
parent7ad14cf09b447fcdbfe76ac739971be8609aa862
mgr/volumes: purge thread uses new async interface

This also makes `_cancel_jobs()` thread safe, which was not the
case earlier (with `_cancel_purge_job()`) -- this also makes the
code simpler by sharing the lock betweent two condition variables.

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