From 86c19816c612c3bec82f53b4b77ce005d1100edb Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Sun, 30 Oct 2022 18:09:15 +0000 Subject: [PATCH] block_util: Probe for used io_uring opcodes The probing logic wasn't updated to reflect the actual opcodes in use for io_uring which are vectored read/writes not the unvectored versions. Signed-off-by: Rob Bradford --- block_util/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block_util/src/lib.rs b/block_util/src/lib.rs index 0a3289f4e..b7797609b 100644 --- a/block_util/src/lib.rs +++ b/block_util/src/lib.rs @@ -566,15 +566,15 @@ pub fn block_io_uring_is_supported() -> bool { return false; } - // Check IORING_OP_READ is supported - if !probe.is_supported(opcode::Read::CODE) { - info!("{} IORING_OP_READ operation not supported", error_msg); + // Check IORING_OP_READV is supported + if !probe.is_supported(opcode::Readv::CODE) { + info!("{} IORING_OP_READV operation not supported", error_msg); return false; } - // Check IORING_OP_WRITE is supported - if !probe.is_supported(opcode::Write::CODE) { - info!("{} IORING_OP_WRITE operation not supported", error_msg); + // Check IORING_OP_WRITEV is supported + if !probe.is_supported(opcode::Writev::CODE) { + info!("{} IORING_OP_WRITEV operation not supported", error_msg); return false; }