]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Throttle: reduce lock hold periods
authorSamuel Just <sam.just@inktank.com>
Tue, 16 Oct 2012 19:32:20 +0000 (12:32 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 30 Oct 2012 20:31:10 +0000 (13:31 -0700)
commit2646a8fe06fe5b8837c58b5e5525550eec06111d
treef457fc6f02e2141fa841d7aa8098fa22bb4a6f03
parentbc91f9dd7270edb8ed12436e9be9fab70203a547
Throttle: reduce lock hold periods

Previously, we tended to dump a lot of log output under
the Throttle lock.  The log level for most log statements
has been reduced to 10.

Additionally, count and max are now atomic_t and can be
read without the Throttle lock.

Finally, most of the perf counter manipulations have been
moved outside of the lock.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/common/Throttle.cc
src/common/Throttle.h