]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/BaseMgrModule: run MonCommandCompletion on the finisher 27619/head
authorSage Weil <sage@redhat.com>
Thu, 18 Apr 2019 18:10:15 +0000 (13:10 -0500)
committerSage Weil <sage@redhat.com>
Fri, 19 Apr 2019 14:09:36 +0000 (09:09 -0500)
commitb8f2bc43b49b3d9ab815797c3f95a5d10277e6a1
tree59796fe419d5fe96a6382bc75a946bebe3d5ab14
parent36ff938014c636be735ac3c75bcb0e6c5dfa3837
mgr/BaseMgrModule: run MonCommandCompletion on the finisher

The completion takes the ActivePyModules::lock, but the caller may be
holding an internal lock for Objecter and/or MonClient.  Avoid deadlock
by putting the completion on our finisher.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc