diff --git a/.gitignore b/.gitignore index 896698406..294912817 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.so *.ipynb +*.o # Python .mypy_cache/ diff --git a/core/storage/pager.rs b/core/storage/pager.rs index 61cd59bc6..31eb980cd 100644 --- a/core/storage/pager.rs +++ b/core/storage/pager.rs @@ -1012,9 +1012,10 @@ impl Pager { // Give a chance for the allocation to happen elsewhere _ => {} } + } else { + // Give a chance for the allocation to happen elsewhere + io_yield_one!(Completion::new_dummy()); } - // Give a chance for the allocation to happen elsewhere - io_yield_one!(Completion::new_dummy()); } Ok(IOResult::Done(())) }