Remove in_progress_ops

This commit is contained in:
Vitaliy Filippov
2019-11-10 12:52:37 +03:00
parent ae56fe1067
commit 2d0334f9b9
4 changed files with 0 additions and 9 deletions
-3
View File
@@ -29,7 +29,6 @@ int blockstore::dequeue_write(blockstore_operation *op)
);
op->pending_ops = 1;
op->min_used_journal_sector = op->max_used_journal_sector = 0;
in_progress_ops.insert(op);
}
else
{
@@ -111,7 +110,6 @@ int blockstore::dequeue_write(blockstore_operation *op)
journal.sector_info[journal.cur_sector].usage_count++;
op->pending_ops = 2;
op->min_used_journal_sector = op->max_used_journal_sector = 1 + journal.cur_sector;
in_progress_ops.insert(op);
}
return 1;
}
@@ -146,7 +144,6 @@ void blockstore::handle_write_event(ring_data_t *data, blockstore_operation *op)
// Acknowledge write without sync
op->retval = op->len;
op->callback(op);
in_progress_ops.erase(op);
// Remember write as unsynced
if (IS_BIG_WRITE(dirty_it->second.state))
{