diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-09-13 01:12:45 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-09-13 01:12:45 +0000 |
commit | a19fbd832b8e3e7417f6dd0e18c6b0f63ea5c280 (patch) | |
tree | 15772e230ef4d834fec59158cc52d3159975ca22 /sys/powerpc/aim | |
parent | 856b6437a893d9a249f12a9dff0c2fce177012c7 (diff) | |
download | FreeBSD-src-a19fbd832b8e3e7417f6dd0e18c6b0f63ea5c280.zip FreeBSD-src-a19fbd832b8e3e7417f6dd0e18c6b0f63ea5c280.tar.gz |
Change VM object lock assertion to match locking higher in the call
chain. This repairs a panic observed during pageout on some 64-bit
PowerPC systems.
Submitted by: grehan
Approved by: re (kib)
MFC after: 2 weeks
Revisit after: 10.0
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/mmu_oea64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c index e93c655..3913b47 100644 --- a/sys/powerpc/aim/mmu_oea64.c +++ b/sys/powerpc/aim/mmu_oea64.c @@ -1523,7 +1523,7 @@ moea64_is_modified(mmu_t mmu, vm_page_t m) * concurrently set while the object is locked. Thus, if PGA_WRITEABLE * is clear, no PTEs can have LPTE_CHG set. */ - VM_OBJECT_ASSERT_WLOCKED(m->object); + VM_OBJECT_ASSERT_LOCKED(m->object); if (!vm_page_xbusied(m) && (m->aflags & PGA_WRITEABLE) == 0) return (FALSE); return (moea64_query_bit(mmu, m, LPTE_CHG)); |