From a10703008f7f4eb57a62658f2b9a015eb81509d0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 21 Oct 2013 14:40:03 -0700 Subject: [PATCH] librbd: wire up flush counter Fixes: #5668 Signed-off-by: Sage Weil --- src/librbd/internal.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index b8a757ab333..fdfc086e866 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -2821,7 +2821,9 @@ reprotect_and_return_err: return r; ictx->user_flushed(); - return _flush(ictx); + int r = _flush(ictx); + ictx->perfcounter->inc(l_librbd_flush); + return r; } int _flush(ImageCtx *ictx)