io/uring/Queue: use IntrusiveList<>
This commit is contained in:

committed by
Max Kellermann

parent
f64799622d
commit
3ac87bbcda
@@ -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);
|
||||
|
Reference in New Issue
Block a user