mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 12:23:22 +00:00
Refine mapping-related locks
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
968389f550
commit
e60b5b7649
@ -81,8 +81,8 @@ where
|
||||
let page: Page<PageTablePageMeta<E, C>> = self.into();
|
||||
|
||||
// Acquire the lock.
|
||||
while page
|
||||
.meta()
|
||||
let meta = page.meta();
|
||||
while meta
|
||||
.lock
|
||||
.compare_exchange(0, 1, Ordering::Acquire, Ordering::Relaxed)
|
||||
.is_err()
|
||||
|
Reference in New Issue
Block a user