]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid the unnecessary acquisition of the free page queues lock when a page
authorAlan Cox <alc@FreeBSD.org>
Wed, 14 Feb 2007 07:05:55 +0000 (07:05 +0000)
committerAlan Cox <alc@FreeBSD.org>
Wed, 14 Feb 2007 07:05:55 +0000 (07:05 +0000)
commit7d60988bad2cda834c278bfe7e555d0e0353c0ff
treea71c6018929c413c1c36b928e1b67509824e746c
parent9c518c234b073769063b086103701fdc7e834150
Avoid the unnecessary acquisition of the free page queues lock when a page
is actually being added to the hold queue, not the free queue.  At the same
time, avoid unnecessary tests to wake up threads waiting for free memory
and the idle thread that zeroes free pages.  (These tests will be performed
later when the page finally moves from the hold queue to the free queue.)
sys/vm/vm_page.c