Revert "debug cruft, likely will revert but this proved useful, esp log_if_slow"

This reverts commit 0fd67b27e5.

Bunch of conflicts.
This commit is contained in:
Christian Schwarz
2025-01-07 12:26:04 +01:00
parent 987829e5c2
commit f6f947e4ec
14 changed files with 27 additions and 181 deletions

View File

@@ -15,9 +15,6 @@ pub(super) mod tokio_epoll_uring_ext;
use tokio_epoll_uring::IoBuf;
use tracing::Instrument;
#[cfg(target_os = "linux")]
use {crate::log_if_slow, std::time::Duration};
pub(crate) use super::api::IoEngineKind;
#[derive(Clone, Copy)]
#[repr(u8)]
@@ -152,18 +149,8 @@ impl IoEngine {
}
#[cfg(target_os = "linux")]
IoEngine::TokioEpollUring => {
let system = log_if_slow(
"thread_local_system",
Duration::from_secs(1),
tokio_epoll_uring_ext::thread_local_system(),
)
.await;
let (resources, res) = log_if_slow(
"system.read",
Duration::from_secs(1),
system.read(file_guard, offset, slice),
)
.await;
let system = tokio_epoll_uring_ext::thread_local_system().await;
let (resources, res) = system.read(file_guard, offset, slice).await;
(resources, res.map_err(epoll_uring_error_to_std))
}
}