powerpc64/pmap: Fix release order to match lock order in moea64_enter()
Page PV lock is always taken first, so should be released last. This also (trivially) shortens the hold time of the pmap lock. Submitted by: mjg
This commit is contained in:
parent
5b63b22075
commit
02e7952133
@ -1453,8 +1453,8 @@ moea64_enter(mmu_t mmu, pmap_t pmap, vm_offset_t va, vm_page_t m,
|
||||
moea64_pvo_enter(mmu, pvo, pvo_head, NULL);
|
||||
}
|
||||
}
|
||||
PV_PAGE_UNLOCK(m);
|
||||
PMAP_UNLOCK(pmap);
|
||||
PV_PAGE_UNLOCK(m);
|
||||
|
||||
/* Free any dead pages */
|
||||
if (error == EEXIST) {
|
||||
|
Loading…
Reference in New Issue
Block a user