markj 6c262608dd Refactor domainset iterators for use by malloc(9) and UMA.
Before this change we had two flavours of vm_domainset iterators: "page"
and "malloc".  The latter was only used for kmem_*() and hard-coded its
behaviour based on kernel_object's policy.  Moreover, its use contained
a race similar to that fixed by r338755 since the kernel_object's
iterator was being run without the object lock.

In some cases it is useful to be able to explicitly specify a policy
(domainset) or policy+iterator (domainset_ref) when performing memory
allocations.  To that end, refactor the vm_dominset_* KPI to permit
this, and get rid of the "malloc" domainset_iter KPI in the process.

Reviewed by:	jeff (previous version)
Tested by:	pho (part of a larger patch)
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17417
2018-10-23 16:35:58 +00:00
..
2018-10-22 02:36:07 +00:00
2018-10-22 18:29:12 +00:00
2018-10-20 20:45:49 +00:00
2018-10-05 17:53:47 +00:00
2018-08-23 13:21:01 +00:00
2018-10-22 02:36:18 +00:00
2018-10-20 22:39:35 +00:00
2018-10-22 02:36:18 +00:00
2018-07-15 00:31:17 +00:00
2018-09-22 17:05:49 +00:00