From fd9af2739e4f2f62e142d5454298067017dd10ea Mon Sep 17 00:00:00 2001 From: Rutvik Patel Date: Sat, 6 Jul 2024 13:48:58 +0530 Subject: [PATCH] wait for the read completion The submit_and_wait command waits for `n` completion events. We were providing an incorrect argument, which caused the issue. --- core/io/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/linux.rs b/core/io/linux.rs index 4d0dcc29b..7251cb754 100644 --- a/core/io/linux.rs +++ b/core/io/linux.rs @@ -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) => {