mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
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:
committed by
Tate, Hongliang Tian
parent
349d7baa24
commit
c875201c3f
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user