freebsd-dev/sys/cddl/compat/opensolaris/sys
Nathan Whitehorn 96c85efb4b Replace a number of conflations of mp_ncpus and mp_maxid with either
mp_maxid or CPU_FOREACH() as appropriate. This fixes a number of places in
the kernel that assumed CPU IDs are dense in [0, mp_ncpus) and would try,
for example, to run tasks on CPUs that did not exist or to allocate too
few buffers on systems with sparse CPU IDs in which there are holes in the
range and mp_maxid > mp_ncpus. Such circumstances generally occur on
systems with SMT, but on which SMT is disabled. This patch restores system
operation at least on POWER8 systems configured in this way.

There are a number of other places in the kernel with potential problems
in these situations, but where sparse CPU IDs are not currently known
to occur, mostly in the ARM machine-dependent code. These will be fixed
in a follow-up commit after the stable/11 branch.

PR:		kern/210106
Reviewed by:	jhb
Approved by:	re (glebius)
2016-07-06 14:09:49 +00:00
..
acl.h
assfail.h make userland __assfail from opensolaris compat honor 'aok' variable 2014-10-07 14:15:50 +00:00
atomic.h Welcome the RISC-V 64-bit kernel. 2016-01-29 15:12:31 +00:00
bitmap.h
byteorder.h
callo.h MFV r296505: 6531 Provide mechanism to artificially limit disk performance 2016-03-08 17:27:13 +00:00
cmn_err.h
cpupart.h
cpuvar_defs.h
cpuvar.h remove opensolaris cyclic code, replace with high-precision callouts 2014-12-07 11:21:41 +00:00
cred.h
debug_compat.h
debug.h
dirent.h
disp.h MFV r255255: 4045 zfs write throttle & i/o scheduler performance work 2013-11-26 09:57:14 +00:00
dkio.h Reintroduce priority for the TRIM ZIOs instead of using the "NOW" priority 2014-04-30 17:46:29 +00:00
dnlc.h Use vnlru_free(9) to implement dnlc_reduce_cache(). 2016-06-17 17:34:28 +00:00
elf.h
feature_tests.h
file.h fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
freebsd_rwlock.h
kcondvar.h MFV r247844 (illumos-gate 13975:ef6409bc370f) 2013-09-10 01:46:47 +00:00
kidmap.h
kmem.h Refactor ZFS ARC reclaim checks and limits 2014-10-03 20:34:55 +00:00
kobj.h
kstat.h Fix r286574 build in user-space. 2015-08-10 12:25:26 +00:00
lock.h
misc.h
mman.h
mntent.h
mnttab.h
modctl.h
mount.h
mutex.h
nvpair.h Add support for the arrays in nvlist library. 2015-08-15 06:34:49 +00:00
objfs.h
param.h
pathname.h
pcpu.h
policy.h
proc.h Replace a number of conflations of mp_ncpus and mp_maxid with either 2016-07-06 14:09:49 +00:00
random.h
refstr.h
rwlock.h
sdt.h Add dtrace probe support for zfs SET_ERROR(..) 2014-09-18 20:00:36 +00:00
sema.h
sid.h
sig.h
stat.h
string.h
sunddi.h Remove unused strdup() #define. 2015-01-20 22:27:45 +00:00
systeminfo.h
systm.h MFV r296505: 6531 Provide mechanism to artificially limit disk performance 2016-03-08 17:27:13 +00:00
time.h MFV r296529: 2016-03-08 18:28:24 +00:00
types.h compat/opensolaris: Don't redefined off64_t if already defined 2016-05-11 16:05:32 +00:00
uio.h
varargs.h
vfs.h remove emulation of VFS_HOLD and VFS_RELE from opensolaris compat 2016-04-02 16:25:46 +00:00
vm.h zfs: add zfs_freebsd_putpages 2013-11-29 15:39:39 +00:00
vnode.h Create a dedicated function for ensuring that cdir and rdir are populated. 2015-07-11 16:22:48 +00:00
zone.h