Using the aio_wait are unncessary, since all the async read
submission and completion happen in the same thread.
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
} else {
task->return_code = 0;
}
- ctx->try_aio_wake();
+ --ctx->num_running;
}
} else {
ceph_assert(task->command == IOCommand::FLUSH_COMMAND);
make_read_tasks(this, off, ioc, buf, len, &t, off, len);
dout(5) << __func__ << " " << off << "~" << len << dendl;
aio_submit(ioc);
- ioc->aio_wait();
pbl->push_back(std::move(p));
return t.return_code;
make_read_tasks(this, aligned_off, &ioc, buf, aligned_len, &t, off, len);
aio_submit(&ioc);
- ioc.aio_wait();
return t.return_code;
}