]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Objecter: implement mon and osd operation timeouts
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 4 Feb 2014 01:59:21 +0000 (17:59 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 11 Feb 2014 00:02:40 +0000 (16:02 -0800)
commit69b1e5e58ee95da640904330b7df40fccecdfcd8
tree3186fafc656b5d36617d90e4ac3636ec21b46de9
parentb39f1486d4b38cc5a84c6a865607b775b90d04a7
Objecter: implement mon and osd operation timeouts

This captures almost all operations from librados other than mon_commands().

Get the values for the timeouts from the Objecter constructor, so only
librados uses them.

Add C_Cancel_*_Op, finish_*_op(), and *_op_cancel() for each type of
operation, to mirror those for Op. Create a callback and schedule it
in the existing timer thread if the timeouts are specified.

Fixes: #6507
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 3e1f7bbb4217d322f4e0ece16e676cd30ee42a20)

Conflicts:
src/osd/ReplicatedPG.cc
src/client/Client.cc
src/librados/RadosClient.cc
src/mds/Dumper.cc
src/mds/MDS.cc
src/mds/Resetter.cc
src/osd/OSD.cc
src/osd/ReplicatedPG.cc
src/osdc/Objecter.cc
src/osdc/Objecter.h
src/test/mon/test_mon_workloadgen.cc