From c4f5c92fac8a39ffff29d57e99c3c0163358dd7a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 16 Feb 2021 12:07:14 -0700 Subject: [PATCH] engines/io_uring: add verbose error for ENOSYS If we get ENOSYS for setting up the rings, then the kernel is too old to support io_uring. Mention that explicitly. Signed-off-by: Jens Axboe --- engines/io_uring.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/io_uring.c b/engines/io_uring.c index 9ce2ae80..c9036ba0 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -696,7 +696,11 @@ static int fio_ioring_post_init(struct thread_data *td) err = fio_ioring_queue_init(td); if (err) { - td_verror(td, errno, "io_queue_init"); + int __errno = errno; + + if (__errno == ENOSYS) + log_err("fio: your kernel doesn't support io_uring\n"); + td_verror(td, __errno, "io_queue_init"); return 1; } -- 2.25.1