]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Push down the page queues lock inside of vm_page_free_toq() and
authoralc <alc@FreeBSD.org>
Thu, 6 May 2010 16:39:43 +0000 (16:39 +0000)
committeralc <alc@FreeBSD.org>
Thu, 6 May 2010 16:39:43 +0000 (16:39 +0000)
commit4b98b3d3203f8e23130597b9b6ab9f1487ba69e6
treedfc0fa6f0a9194a6c782ff3251e16f9d16a9aade
parente6323f71424e4730372914a47d9b7b5f4bb410b4
Push down the page queues lock inside of vm_page_free_toq() and
pmap_page_is_mapped() in preparation for removing page queues locking
around calls to vm_page_free().  Setting aside the assertion that calls
pmap_page_is_mapped(), vm_page_free_toq() now acquires and holds the page
queues lock just long enough to actually add or remove the page from the
paging queues.

Update vm_page_unhold() to reflect the above change.
sys/amd64/amd64/pmap.c
sys/i386/i386/pmap.c
sys/sparc64/sparc64/pmap.c
sys/vm/vm_page.c
sys/vm/vm_page.h