[PATCH liburing 4/8] test/reg-wait: skip when R_DISABLED is not supported

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

 



Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx>
---
 test/reg-wait.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/reg-wait.c b/test/reg-wait.c
index 6cf47bf..c4e5863 100644
--- a/test/reg-wait.c
+++ b/test/reg-wait.c
@@ -234,8 +234,9 @@ static int test_try_register_region(struct io_uring_mem_region_reg *pr,
 
 	ret = io_uring_queue_init(8, &ring, flags);
 	if (ret) {
-		fprintf(stderr, "ring setup failed: %d\n", ret);
-		return 1;
+		if (ret != -EINVAL)
+			fprintf(stderr, "ring setup failed: %d\n", ret);
+		return ret;
 	}
 
 	ret = io_uring_register_region(&ring, pr);
-- 
2.46.0





[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