]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: update osd_stat_updated field if we force to report to monitor
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 30 Mar 2016 04:17:15 +0000 (12:17 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 30 Mar 2016 08:39:46 +0000 (16:39 +0800)
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 <xie.xingguo@zte.com.cn>
src/osd/OSD.cc

index d50fbf898bca0eea39377ce3cebdbaa84ea83a25..e51c1191a4c5df9534f2f155c351b0c46ba720ff 100644 (file)
@@ -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;
       }
     }