]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/pybind/volumes: avoid acquiring lock for thread count updates 41394/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 22 Mar 2021 16:17:43 +0000 (09:17 -0700)
committerVenky Shankar <vshankar@redhat.com>
Wed, 26 May 2021 13:43:41 +0000 (09:43 -0400)
commit1967c49dff8825780e142084ef832aa391d0b9fc
treea15b0039d63d0d2adb7c029b366c397c940e4535
parent364e6c4383752ee158891fce6726d2d973278399
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>
(cherry picked from commit b27ddfaed4a3c66bac2343c8315a1fe542edb63e)
src/pybind/mgr/volumes/fs/async_cloner.py
src/pybind/mgr/volumes/fs/async_job.py
src/pybind/mgr/volumes/fs/volume.py