Author: jhibbits
Date: Mon Oct  7 02:36:42 2019
New Revision: 353158
URL: https://svnweb.freebsd.org/changeset/base/353158

Log:
  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

Modified:
  head/sys/powerpc/aim/mmu_oea64.c

Modified: head/sys/powerpc/aim/mmu_oea64.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea64.c    Mon Oct  7 01:03:14 2019        
(r353157)
+++ head/sys/powerpc/aim/mmu_oea64.c    Mon Oct  7 02:36:42 2019        
(r353158)
@@ -1453,8 +1453,8 @@ moea64_enter(mmu_t mmu, pmap_t pmap, vm_offset_t va, v
                        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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to