]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix deadlock in ActivePyModules::get_osdmap() 38762/head
authorpeng jiaqi <peng.jiaqi@zte.com.cn>
Tue, 5 Jan 2021 03:15:26 +0000 (11:15 +0800)
committerpeng jiaqi <peng.jiaqi@zte.com.cn>
Fri, 15 Jan 2021 08:14:22 +0000 (16:14 +0800)
commit8e531ede1e8f3520aaf1202176f6282fca4ad633
treedf14da5462adf60e2862a0ede5a379f1608d3a24
parent1bfac6181a18be3417e8090e0e2894c39783abc1
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>
src/mgr/ActivePyModules.cc