From d20e9492bf485954e796536684e00683dc0bdaad Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Thu, 23 Nov 2023 11:04:36 +0000 Subject: [PATCH] chore: silence flush not supported IO We don't keep any caching, so we don't actually need to make use of it anyway. TODO: do we need to even send flush? Signed-off-by: Tiago Castro --- io-engine/src/bdev/nexus/nexus_bdev.rs | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/io-engine/src/bdev/nexus/nexus_bdev.rs b/io-engine/src/bdev/nexus/nexus_bdev.rs index 57e63f5765..1b295f4b2f 100644 --- a/io-engine/src/bdev/nexus/nexus_bdev.rs +++ b/io-engine/src/bdev/nexus/nexus_bdev.rs @@ -1265,11 +1265,20 @@ impl<'n> BdevOps for Nexus<'n> { | IoType::WriteZeros => { let supported = self.io_is_supported(io_type); if !supported { - debug!( - "{:?}: I/O type '{:?}' not supported by at least \ - one of child devices", - self, io_type - ); + if io_type == IoType::Flush { + trace!( + "{:?}: I/O type '{:?}' not supported by at least \ + one of child devices", + self, + io_type + ); + } else { + debug!( + "{:?}: I/O type '{:?}' not supported by at least \ + one of child devices", + self, io_type + ); + } } supported }