Skip to content

Commit 3964802

Browse files
roypatzulinx86
authored andcommitted
chore: Remove 4.14 related io_uring checks
io_uring is not supported on 4.14 hosts. Since #4689 dropped support for 4.14 hosts, and 5.10 does support io_uring, remove various checks related to unsupported (4.14) host kernels. Also update some of our unittests to always test both the sync and async block engines. Previously, we only tested the sync engine on 4.14 hosts, and only the async engien on 5.10 hosts. With the removal of 4.14 hosts, this meant that we were no longer unittesting the sync engine in these tests at all. Thus, have all the tests unconditionally test both engines. Signed-off-by: Patrick Roy <[email protected]>
1 parent 029ce74 commit 3964802

File tree

7 files changed

+781
-902
lines changed

7 files changed

+781
-902
lines changed

src/utils/src/kernel_version.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,28 +85,6 @@ impl std::fmt::Display for KernelVersion {
8585
}
8686
}
8787

88-
pub fn min_kernel_version_for_io_uring() -> KernelVersion {
89-
KernelVersion::new(5, 10, 51)
90-
}
91-
92-
#[macro_export]
93-
macro_rules! skip_if_io_uring_unsupported {
94-
() => {
95-
if KernelVersion::get().unwrap() < min_kernel_version_for_io_uring() {
96-
return;
97-
}
98-
};
99-
}
100-
101-
#[macro_export]
102-
macro_rules! skip_if_io_uring_supported {
103-
() => {
104-
if KernelVersion::get().unwrap() >= min_kernel_version_for_io_uring() {
105-
return;
106-
}
107-
};
108-
}
109-
11088
#[cfg(test)]
11189
mod tests {
11290
use super::*;

0 commit comments

Comments
 (0)