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.
This commit is contained in:
Rutvik Patel 2024-07-06 13:48:58 +05:30
parent 1149ba11dc
commit fd9af2739e

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) => {