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
This commit is contained in:
parent
cd04f04fb5
commit
1330c354c5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user