Merge pull request #75 from heyrutvik/wait-for-completion

wait for the read completion
This commit is contained in:
Pekka Enberg
2024-07-06 15:37:33 +03:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ impl IO for LinuxIO {
fn run_once(&self) -> Result<()> {
trace!("run_once()");
let mut ring = self.ring.borrow_mut();
ring.submit_and_wait(0)?;
ring.submit_and_wait(1)?;
loop {
match ring.completion().next() {
Some(cqe) => {