scrub_wq(osd->scrub_wq),
scrub_finalize_wq(osd->scrub_finalize_wq),
rep_scrub_wq(osd->rep_scrub_wq),
+ push_wq("push_wq", cct->_conf->osd_recovery_thread_timeout, &osd->recovery_tp),
class_handler(osd->class_handler),
publish_lock("OSDService::publish_lock"),
pre_publish_lock("OSDService::pre_publish_lock"),
ThreadPool::WorkQueue<PG> &scrub_wq;
ThreadPool::WorkQueue<PG> &scrub_finalize_wq;
ThreadPool::WorkQueue<MOSDRepScrub> &rep_scrub_wq;
+ GenContextWQ push_wq;
ClassHandler *&class_handler;
void dequeue_pg(PG *pg, list<OpRequestRef> *dequeued);
get_parent()->queue_transaction(t);
}
-struct C_ReplicatedBackend_OnPullComplete : Context {
+struct C_ReplicatedBackend_OnPullComplete : GenContext<ThreadPool::TPHandle&> {
ReplicatedBackend *bc;
list<pair<hobject_t, ObjectContextRef> > to_continue;
int priority;
C_ReplicatedBackend_OnPullComplete(ReplicatedBackend *bc, int priority)
: bc(bc), priority(priority) {}
- void finish(int) {
+ void finish(ThreadPool::TPHandle &handle) {
ReplicatedBackend::RPGHandle *h = bc->_open_recovery_op();
for (list<pair<hobject_t, ObjectContextRef> >::iterator i =
to_continue.begin();
bc->get_parent()->on_global_recover(
i->first);
}
+ handle.reset_tp_timeout();
}
bc->run_recovery_op(h, priority);
}
m->get_priority());
c->to_continue.swap(to_continue);
t->register_on_complete(
- get_parent()->bless_context(c));
+ new C_QueueInWQ(
+ &osd->push_wq,
+ get_parent()->bless_gencontext(c)));
}
replies.erase(replies.end() - 1);
op->request->get_priority());
c->to_continue.swap(to_continue);
t->register_on_complete(
- get_parent()->bless_context(c));
+ new C_QueueInWQ(
+ &osd->push_wq,
+ get_parent()->bless_gencontext(c)));
}
run_recovery_op(h, op->request->get_priority());
} else {