]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: drop PyModules::lock around module shutdown calls 15578/head
authorJohn Spray <john.spray@redhat.com>
Thu, 8 Jun 2017 12:46:33 +0000 (08:46 -0400)
committerJohn Spray <john.spray@redhat.com>
Thu, 8 Jun 2017 14:03:55 +0000 (10:03 -0400)
commit040e8cf306f2c4ae1315f8dcec0d498d4823340d
tree3bcd9028ae9a1d16be7264052634390b61eadd12
parent8f1146aad251da78d70ffdf686f9e1a6289d6a30
mgr: drop PyModules::lock around module shutdown calls

This deadlocked if the module's shutdown call was trying
to take a pythonland lock that was held by a thread
that was in turn trying to call into C++ land and take
PyModules::lock.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/PyModules.cc