Fix deadlocks that may arise after converting virtio-blk to async

The IRQ part of the driver must NOT share a SpinLock with
the normal part of the driver unless the SpinLock is acquired
with IRQ disabled in the task context.
This commit is contained in:
LI Qing
2024-04-26 11:53:33 +08:00
committed by Tate, Hongliang Tian
parent 349d7baa24
commit c875201c3f
2 changed files with 11 additions and 11 deletions

View File

@ -92,10 +92,7 @@ impl IndirectBlockCache {
return Ok(());
}
// TODO: How to determine the number of evictions each time?
//
// FIXME: When we set it to `Self::MAX_SIZE / 2` here,
// running the `/regression/ext2.sh` test may cause a deadlock issue.
let evict_num = 1;
let evict_num = Self::MAX_SIZE / 2;
self.evict(evict_num)
}