]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
blk/kernel/io_uring: do not guard liburing backend with __x86_64__ anymore
authorJiangYu <lnsyyj@hotmail.com>
Fri, 20 Nov 2020 06:24:54 +0000 (06:24 +0000)
committerJiangYu <lnsyyj@hotmail.com>
Sun, 22 Nov 2020 11:39:40 +0000 (11:39 +0000)
Signed-off-by: JiangYu <lnsyyj@hotmail.com>
Let the liburing library to ensure the support of the iouring system call back-end CPU instruction set.

src/blk/kernel/io_uring.cc

index f248d38197a8af021170be6793aa082185dea814..5c64b7ed6c3809c66ab2f768da6d4d9547bc8d80 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "io_uring.h"
 
-#if defined(HAVE_LIBURING) && defined(__x86_64__)
+#if defined(HAVE_LIBURING)
 
 #include "liburing.h"
 #include <sys/epoll.h>
@@ -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)