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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux