opnsense-src/sys/arm
Jason A. Harmening 2619c5ccfe Avoid waiting on physical allocations that can't possibly be satisfied
- Change vm_page_reclaim_contig[_domain] to return an errno instead
  of a boolean.  0 indicates a successful reclaim, ENOMEM indicates
  lack of available memory to reclaim, with any other error (currently
  only ERANGE) indicating that reclamation is impossible for the
  specified address range.  Change all callers to only follow
  up with vm_page_wait* in the ENOMEM case.

- Introduce vm_domainset_iter_ignore(), which marks the specified
  domain as unavailable for further use by the iterator.  Use this
  function to ignore domains that can't possibly satisfy a physical
  allocation request.  Since WAITOK allocations run the iterators
  repeatedly, this avoids the possibility of infinitely spinning
  in domain iteration if no available domain can satisfy the
  allocation request.

PR:		274252
Reported by:	kevans
Tested by:	kevans
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D42706
2023-12-23 23:01:40 -06:00
..
allwinner sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
altera/socfpga sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
annapurna/alpine sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
arm arm: Disable the VFP during boot 2023-12-11 09:08:49 -05:00
broadcom/bcm2835 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
conf Add a COMPAT_FREEBSD14 kernel option 2023-10-10 11:48:22 +02:00
freescale sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
include sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
mv sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nvidia Avoid waiting on physical allocations that can't possibly be satisfied 2023-12-23 23:01:40 -06:00
qemu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
qualcomm sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rockchip sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ti sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xilinx sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00