]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: protect mon reporting with mon_report_lock
authorSage Weil <sage@redhat.com>
Wed, 30 Sep 2015 01:03:53 +0000 (21:03 -0400)
committerSage Weil <sage@redhat.com>
Mon, 23 Nov 2015 13:38:47 +0000 (08:38 -0500)
commit39c1495406cce3f24c427a3d7a53fb7b26a509c9
tree581b6c8ddec50c31d1085232ad0a76679bf961d1
parente31b69514a8aafddd0f4e50482d185ddcaa11d5e
osd: protect mon reporting with mon_report_lock

We need an exclusive lock over paths that update state related to
mon reports, lest they step on fields like up_thru_*, *stats_ack*,
last_mon_report, and so on.  Everybody still needs a read lock
on map_lock too to get a stable OSDMap epoch.

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