public inbox for [email protected]
 help / color / mirror / Atom feed
From: Pavel Begunkov <[email protected]>
To: [email protected]
Cc: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH liburing 1/1] tests/fd-pass: close rings
Date: Sun,  5 Mar 2023 05:16:57 +0000	[thread overview]
Message-ID: <2514ac14bffdffe0a78fd51c41698deb20d54cc4.1677993404.git.asml.silence@gmail.com> (raw)

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 <[email protected]>
---
 test/fd-pass.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 }
 
-- 
2.39.1


             reply	other threads:[~2023-03-05  5:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-05  5:16 Pavel Begunkov [this message]
2023-03-05 14:35 ` [PATCH liburing 1/1] tests/fd-pass: close rings Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2514ac14bffdffe0a78fd51c41698deb20d54cc4.1677993404.git.asml.silence@gmail.com \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox