Skip to content

Commit

Permalink
chore: silence flush not supported IO
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tiagolobocastro committed Nov 23, 2023
1 parent 29bb4bb commit d20e949
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions io-engine/src/bdev/nexus/nexus_bdev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d20e949

Please sign in to comment.