From: xie xingguo Date: Wed, 30 Mar 2016 04:17:15 +0000 (+0800) Subject: osd: update osd_stat_updated field if we force to report to monitor X-Git-Tag: v10.1.1~46^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9cf53022c307c67e5926f9d58ba7be1758bb0a2d;p=ceph.git osd: update osd_stat_updated field if we force to report to monitor On tick_without_osd_lock() waking up, we will force an immediate report to monitor if a long enough period has elapsed since our last report was sent. However, the send_pg_stats() procedure is a noop unless either osd_stat_updated field is set or pg_stat_queue is empty. Since the latter condition is non-deterministic, we shall manually set osd_stat_updated here to kick a pg relevant report off. Signed-off-by: xie xingguo --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index d50fbf898bca..e51c1191a4c5 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4268,6 +4268,7 @@ void OSD::tick_without_osd_lock() dout(20) << __func__ << " stats backoff " << backoff << " adjusted_min " << adjusted_min << " - sending report" << dendl; + osd_stat_updated = true; report = true; } }