]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/OpTracker: refactor check_ops_in_flight()
authorKefu Chai <kchai@redhat.com>
Fri, 27 Oct 2017 08:55:14 +0000 (16:55 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 08:38:59 +0000 (16:38 +0800)
commit721cff9a971a14c884addf2bc492ab6356b57a09
treee051ac3e1f093c93af7cc5f7f1879fd9b82963a2
parent6fed1d21be1adf1464b5834787c95fae205a91b5
common/OpTracker: refactor check_ops_in_flight()

* add a function visit_ops_in_flight() so it accepts a std::function,
  which can be applied to all ops in flight. and is used to count
  slow ops. the # of slow ops will be sent to mgr.
* add a function with_slow_ops_in_flight(), so we can use it to
  implement command like "dump_slow_ops_in_flight". unlike the
  existing feature which dumps slow ops to clog periodically, it
  will dump the slow ops on demand. and backoff the warning
  interval only when the slow ops are dumped.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/TrackedOp.cc
src/common/TrackedOp.h
src/mds/MDSRank.cc
src/osd/OSD.cc