]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: revise locking in getter paths
authorSage Weil <sage@redhat.com>
Mon, 26 Nov 2018 20:54:00 +0000 (14:54 -0600)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sun, 28 Apr 2019 10:14:50 +0000 (18:14 +0800)
commitdf6979f2caa0a92558eba08834f35c283e6f1d8f
tree91cd6ee37521fbda76d46a5c80ff3dc42012349b
parent8de7c28f933af9aeb02e0953c7ba124c8455c23f
mgr: revise locking in getter paths

There were many places where with_* methods
were blocking on locks while holding the GIL.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 61aa7e2e0230bff49e757c32932d1db4bcad5f67)

Conflicts:
- Mutex::Locker -> std::lock_guard (948635a8)
        - migrate 'osd pool stats' command from mon to mgr (007eae7d)
        - and many more..
src/mgr/ActivePyModules.cc