]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/pybind/volumes: avoid acquiring lock for thread count updates
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 22 Mar 2021 16:17:43 +0000 (09:17 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 24 Mar 2021 18:40:10 +0000 (11:40 -0700)
commitb27ddfaed4a3c66bac2343c8315a1fe542edb63e
treed37f32adb22b8aecae82f05b13c869ad0732dc72
parent17b291e57d18d13643761570adf208fbbca06252
mgr/pybind/volumes: avoid acquiring lock for thread count updates

Perform thread count updates in a dedicated tick thread. This avoids the
mgr Finisher thread from getting potentially hung via a mutex deadlock
in the cloner thread management.

Fixes: https://tracker.ceph.com/issues/49605
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/pybind/mgr/volumes/fs/async_cloner.py
src/pybind/mgr/volumes/fs/async_job.py
src/pybind/mgr/volumes/fs/volume.py