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:
Justin Hibbits 2019-10-07 02:36:42 +00:00
parent 5b63b22075
commit 02e7952133

View File

@ -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) {