[io_generator] Simplify the class interface

This commit is contained in:
Ming-Hung Tsai
2020-06-20 00:04:01 +08:00
parent fe754d81a4
commit 084ac4b950
3 changed files with 7 additions and 13 deletions

View File

@@ -93,10 +93,8 @@ namespace {
io_generator::ptr gen = create_io_generator(opts);
base::io io;
while (gen->has_next()) {
while (gen->next(io)) {
// TODO: support io.size_
gen->next(io);
switch (io.op_) {
case base::REQ_OP_READ:
process_read(td, pool, io.sector_);