]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix deadlock in ActivePyModules::get_osdmap() 39341/head
authorpeng jiaqi <peng.jiaqi@zte.com.cn>
Tue, 5 Jan 2021 03:15:26 +0000 (11:15 +0800)
committerNathan Cutler <ncutler@suse.com>
Sun, 7 Feb 2021 12:50:40 +0000 (13:50 +0100)
commit18dda820c0f3f0d59965ee549dc77eaac110008d
treee307f4371d2bc9efce0dd3546796ef0bc76218d1
parent5a7038d96082e5face2b950d0749132044c95400
mgr: fix deadlock in ActivePyModules::get_osdmap()

In function "ActivePyModules::get_osdmap()", We do not read or write to
object "ActivePyModules", so it is safe to delete lock
"ActivePyModules::lock", and it can avoid other thread waiting for lock
"ActivePyModules::lock"

Fixes: https://tracker.ceph.com/issues/48852
Signed-off-by: peng jiaqi <peng.jiaqi@zte.com.cn>
(cherry picked from commit 8e531ede1e8f3520aaf1202176f6282fca4ad633)
src/mgr/ActivePyModules.cc