]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: 174104
authorjhb <jhb@FreeBSD.org>
Wed, 17 Sep 2008 20:38:18 +0000 (20:38 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 17 Sep 2008 20:38:18 +0000 (20:38 +0000)
commit2655794756df2e7c8c1bca62311551506e17f11a
treedb8850fc9a83b53c55b4e6dba0febb95d909ebae
parent805eccff19b1156cf1ca4a025bad8a49329aae92
MFC: 174104
Improve get_pv_entry()'s handling of low-memory conditions.  After page
allocation fails and pv entries are reclaimed, there may be an unused pv
entry in a pv chunk that survived the reclamation.  However, previously,
after reclamation, get_pv_entry() did not look for an unused pv entry in
a surviving pv chunk; it simply retried the page allocation.  Now, it
does look for an unused pv entry before retrying the page allocation.

Note: This only applies to RELENG_7.  Earlier branches use a different
pv entry allocator.

Approved by: re (kib), alc
sys/amd64/amd64/pmap.c
sys/i386/i386/pmap.c