Jayachandran C. 17dca144a2 Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig()
fails to allocate MIPS page table pages.  The current usage of VM_WAIT in
case of vm_phys_alloc_contig() failure is not correct, because:

"There is no guarantee that any of the available free (or cached) pages
after the VM_WAIT will fall within the range of suitable physical
addresses.  Every time this function sleeps and a single page is freed
(or cached) by someone else, this function will be reawakened.  With
a little bad luck, you could spin indefinitely."

We also add low and high parameters to vm_contig_grow_cache() and
vm_contig_launder() so that we restrict vm_contig_launder() to the range
of pages we are interested in.

Reported by: alc

Reviewed by:	alc
Approved by:	rrs (mentor)
2010-06-04 06:35:36 +00:00
..
2010-05-31 06:06:10 +00:00
2010-05-24 07:04:00 +00:00
2010-05-24 16:41:05 +00:00
2010-06-03 12:09:02 +00:00
2010-06-02 17:17:11 +00:00
2010-06-02 17:27:23 +00:00
2010-05-24 16:27:47 +00:00
2010-05-29 09:12:02 +00:00
2010-02-21 01:12:18 +00:00