mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-22 07:51:16 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
ad1cb130a5
commit
86c19816c6
@ -566,15 +566,15 @@ pub fn block_io_uring_is_supported() -> bool {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check IORING_OP_READ is supported
|
// Check IORING_OP_READV is supported
|
||||||
if !probe.is_supported(opcode::Read::CODE) {
|
if !probe.is_supported(opcode::Readv::CODE) {
|
||||||
info!("{} IORING_OP_READ operation not supported", error_msg);
|
info!("{} IORING_OP_READV operation not supported", error_msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check IORING_OP_WRITE is supported
|
// Check IORING_OP_WRITEV is supported
|
||||||
if !probe.is_supported(opcode::Write::CODE) {
|
if !probe.is_supported(opcode::Writev::CODE) {
|
||||||
info!("{} IORING_OP_WRITE operation not supported", error_msg);
|
info!("{} IORING_OP_WRITEV operation not supported", error_msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user