]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: spinlock -> std::mutex 14269/head
authorSage Weil <sage@redhat.com>
Fri, 31 Mar 2017 13:33:19 +0000 (09:33 -0400)
committerSage Weil <sage@redhat.com>
Fri, 31 Mar 2017 13:33:19 +0000 (09:33 -0400)
commit973829132bf7206eff6c2cf30dd0aa32fb0ce706
treecfb8e8f3a5e0a4883115477410ffc74e69fa6930
parent578b0f7cfc0f61088dc497ead618c766ce5717ab
mon/OSDMonitor: spinlock -> std::mutex

I think spinlock is dangerous here: we're doing semi-unbounded
work (decode).  Also seemingly innocuous code like dout macros
take mutexes.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h