1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

Hold the page queues lock when calling pmap_protect(); it updates fields

of the vm_page structure.  Nearby, remove an unnecessary semicolon and
return statement.

Approved by:	re (blanket)
This commit is contained in:
Alan Cox 2002-12-01 05:40:18 +00:00
parent 1efbdbe23b
commit 38857e7f73
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107436

View File

@ -592,17 +592,19 @@ vm_pageout_map_deactivate_pages(map, desired)
vm_pageout_object_deactivate_pages(map, obj, desired, 0);
}
tmpe = tmpe->next;
};
}
/*
* Remove all mappings if a process is swapped out, this will free page
* table pages.
*/
if (desired == 0 && nothingwired)
if (desired == 0 && nothingwired) {
vm_page_lock_queues();
pmap_remove(vm_map_pmap(map), vm_map_min(map),
vm_map_max(map));
vm_page_unlock_queues();
}
vm_map_unlock(map);
return;
}
#endif /* !defined(NO_SWAPPING) */