From 125674b66264e27a6265e07db3a72a618819ec26 Mon Sep 17 00:00:00 2001 From: JiangYu Date: Fri, 20 Nov 2020 06:24:54 +0000 Subject: [PATCH] blk/kernel/io_uring: do not guard liburing backend with __x86_64__ anymore Signed-off-by: JiangYu Let the liburing library to ensure the support of the iouring system call back-end CPU instruction set. --- src/blk/kernel/io_uring.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blk/kernel/io_uring.cc b/src/blk/kernel/io_uring.cc index f248d38197a8..5c64b7ed6c38 100644 --- a/src/blk/kernel/io_uring.cc +++ b/src/blk/kernel/io_uring.cc @@ -3,7 +3,7 @@ #include "io_uring.h" -#if defined(HAVE_LIBURING) && defined(__x86_64__) +#if defined(HAVE_LIBURING) #include "liburing.h" #include @@ -220,7 +220,7 @@ bool ioring_queue_t::supported() return true; } -#else // #if defined(HAVE_LIBURING) && defined(__x86_64__) +#else // #if defined(HAVE_LIBURING) struct ioring_data {}; @@ -261,4 +261,4 @@ bool ioring_queue_t::supported() return false; } -#endif // #if defined(HAVE_LIBURING) && defined(__x86_64__) +#endif // #if defined(HAVE_LIBURING) -- 2.47.3