[io_generator] Simplify the class interface

This commit is contained in:
Ming-Hung Tsai committed 2020-06-24 12:26:09 +08:00
1 parent fe754d81a4
commit 084ac4b950
3 files changed
+7 -13

No files matched your search

+1 -3
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_);