]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: handle race with finisher after shutdown
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 13 Nov 2019 19:00:44 +0000 (11:00 -0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 08:42:04 +0000 (09:42 +0100)
commit30a61c18ac0af459db7e71d62a7d7f198874dacb
tree34b8f10f2fb09714eeda3776b543dd81ce830747
parenta2010cbc82ce53c909c3d230726d633f552e43a1
mgr: handle race with finisher after shutdown

The module is deleted when modules is cleared. The notify method is
called on a destructed class.

Fixes: https://tracker.ceph.com/issues/42744
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 40c4b9ac9d8e2b2c17269affada304f5e1554974)

Conflicts:
src/mgr/ActivePyModules.cc
- nautilus has capitalized lock.Lock and lock.Unlock
- finisher.queue calls look different in nautilus
src/mgr/ActivePyModule.cc
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/PyModuleRunner.cc
src/mgr/PyModuleRunner.h