io/uring/Close: use IOSQE_CQE_SKIP_SUCCESS

We don't want to get any completion events for "close".  It's
fire-and-forget.
This commit is contained in:
Max Kellermann 2025-01-20 17:21:39 +01:00 committed by Max Kellermann
parent e682940c54
commit 2e3a51a5da

@ -14,6 +14,7 @@ Close(Queue *queue, FileDescriptor fd) noexcept
if (auto *s = queue != nullptr ? queue->GetSubmitEntry() : nullptr) {
io_uring_prep_close(s, fd.Get());
io_uring_sqe_set_data(s, nullptr);
io_uring_sqe_set_flags(s, IOSQE_CQE_SKIP_SUCCESS);
queue->Submit();
} else {
/* io_uring not available or queue full: fall back to