Revert to using the page queues lock in vm_page_clear_dirty_mask() on
MIPS. (At present, although atomic_clear_char() is defined by atomic.h on MIPS, it is not actually implemented by support.S.)
This commit is contained in:
parent
6d4918e45e
commit
e7ea911039
@ -1095,8 +1095,7 @@ vm_fault_quick_hold_pages(vm_map_t map, vm_offset_t addr, vm_size_t len,
|
||||
* required in order to call vm_page_dirty(). See
|
||||
* vm_page_clear_dirty_mask().
|
||||
*/
|
||||
#if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || \
|
||||
defined(__mips__)
|
||||
#if defined(__amd64__) || defined(__i386__) || defined(__ia64__)
|
||||
vm_page_dirty(*mp);
|
||||
#else
|
||||
vm_page_lock_queues();
|
||||
|
@ -2336,8 +2336,7 @@ vm_page_clear_dirty_mask(vm_page_t m, int pagebits)
|
||||
if ((m->oflags & VPO_BUSY) == 0 && (m->flags & PG_WRITEABLE) == 0)
|
||||
m->dirty &= ~pagebits;
|
||||
else {
|
||||
#if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || \
|
||||
defined(__mips__)
|
||||
#if defined(__amd64__) || defined(__i386__) || defined(__ia64__)
|
||||
/*
|
||||
* On the aforementioned architectures, the page queues lock
|
||||
* is not required by the following read-modify-write
|
||||
|
Loading…
Reference in New Issue
Block a user