From: JiangYu Date: Fri, 20 Nov 2020 06:24:54 +0000 (+0000) Subject: blk/kernel/io_uring: do not guard liburing backend with __x86_64__ anymore X-Git-Tag: v16.1.0~497^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=125674b66264e27a6265e07db3a72a618819ec26;p=ceph.git 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. --- diff --git a/src/blk/kernel/io_uring.cc b/src/blk/kernel/io_uring.cc index f248d38197a8a..5c64b7ed6c380 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)