From bf3f57afb7ff980235eb61958dcb0d4620f6cc4a Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 7 Dec 2016 15:29:57 +0800 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.h | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.47.3