]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Throttle: move start_op() to C_SimpleThrottle constructor 272/head
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 10 May 2013 22:59:10 +0000 (15:59 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 10 May 2013 23:17:11 +0000 (16:17 -0700)
commit93f27942335bb7a5b95f4026e2ece78742be35e4
tree2b607b13fb4e66fdec1865fa32f9cfdf0e0dc152
parent613d7471a2ebde04a4376ae821eabe756b8724a6
Throttle: move start_op() to C_SimpleThrottle constructor

This is done by all callers right before constructing this.
Since C_SimpleThrottle is already responsible for calling ->end_op(),
it makes sense to call start_op() there too.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/Throttle.h
src/librbd/internal.cc