From 2e3a51a5dada7b81c0bc6d8850e1ffac0a3c1339 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@ionos.com>
Date: Mon, 20 Jan 2025 17:21:39 +0100
Subject: [PATCH] io/uring/Close: use IOSQE_CQE_SKIP_SUCCESS

We don't want to get any completion events for "close".  It's
fire-and-forget.
---
 src/io/uring/Close.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/io/uring/Close.cxx b/src/io/uring/Close.cxx
index b8d2e5fba..b85fa530e 100644
--- a/src/io/uring/Close.cxx
+++ b/src/io/uring/Close.cxx
@@ -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