summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-10-21 14:58:31 -0700
committerJosh Durgin <josh.durgin@inktank.com>2013-10-21 14:58:31 -0700
commitad455c8ebeb734d26d2d9f493d65c9e68ba887bb (patch)
tree9f9780c1cdb75c237e1b0b599c62ea09aff8b00d
parent1376d2379ac2ac3a4fe17fd1bbcf2a8588c7459b (diff)
parenta10703008f7f4eb57a62658f2b9a015eb81509d0 (diff)
downloadceph-ad455c8ebeb734d26d2d9f493d65c9e68ba887bb.tar.gz
Merge pull request #753 from ceph/wip-5668-b
librbd: wire up flush counter Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r--src/librbd/internal.cc4
1 files changed, 3 insertions, 1 deletions
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)