io/uring/Queue: use IntrusiveList<>

This commit is contained in:
Max Kellermann
2020-09-25 15:29:16 +02:00
committed by Max Kellermann
parent f64799622d
commit 3ac87bbcda
3 changed files with 6 additions and 11 deletions

View File

@@ -62,8 +62,8 @@ Queue::DispatchOneCompletion(struct io_uring_cqe &cqe) noexcept
if (data != nullptr) {
auto *c = (CancellableOperation *)data;
c->OnUringCompletion(cqe.res);
operations.erase_and_dispose(operations.iterator_to(*c),
DeleteDisposer{});
c->unlink();
delete c;
}
ring.SeenCompletion(cqe);