From: xie xingguo Date: Wed, 7 Dec 2016 07:29:57 +0000 (+0800) Subject: os/bluestore: fix global commit latency X-Git-Tag: v11.1.0~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12356%2Fhead;p=ceph.git os/bluestore: fix global commit latency "start" is used to calculate the global bluestore commit latency and hence shall not be updated at each internal state enter/exit. Otherwise the l_bluestore_commit_lat counter won't reflect the real commit latency precisely. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 0c4c6420edbe..07fe50bc0b89 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1204,7 +1204,6 @@ public: utime_t lat, now = ceph_clock_now(g_ceph_context); lat = now - last_stamp; logger->tinc(state, lat); - start = now; last_stamp = now; }