diff mbox series

[liburing,1/1] tests/fd-pass: close rings

Message ID 2514ac14bffdffe0a78fd51c41698deb20d54cc4.1677993404.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [liburing,1/1] tests/fd-pass: close rings | expand

Commit Message

Pavel Begunkov March 5, 2023, 5:16 a.m. UTC
Don't leak rings from test(), we call it several times and have a good
number of open rings lingering during the test for no good reason.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 test/fd-pass.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jens Axboe March 5, 2023, 2:35 p.m. UTC | #1
On Sun, 05 Mar 2023 05:16:57 +0000, Pavel Begunkov wrote:
> Don't leak rings from test(), we call it several times and have a good
> number of open rings lingering during the test for no good reason.
> 
> 

Applied, thanks!

[1/1] tests/fd-pass: close rings
      commit: 3533273acbacdc5b120dce12d3aab5c8e56e6186

Best regards,
diff mbox series

Patch

diff --git a/test/fd-pass.c b/test/fd-pass.c
index 245495c..f3ede77 100644
--- a/test/fd-pass.c
+++ b/test/fd-pass.c
@@ -161,6 +161,8 @@  static int test(const char *filename, int source_fd, int target_fd)
 	if (verify_fixed_read(&dring, target_fd, 0))
 		return T_EXIT_FAIL;
 
+	io_uring_queue_exit(&sring);
+	io_uring_queue_exit(&dring);
 	return T_EXIT_PASS;
 }