diff --git a/ircd/fs_aio.cc b/ircd/fs_aio.cc index 4bd794133..12eee29d2 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -495,7 +495,7 @@ ircd::fs::aio::system::cancel(request &request) const auto eit { - std::remove(begin(queue), end(queue), cb) + std::remove(begin(queue), begin(queue) + qcount, cb) }; const auto qcount