freebsd-dev/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Hans Petter Selasky 3da1cf1e88 Extend the meaning of the CTLFLAG_TUN flag to automatically check if
there is an environment variable which shall initialize the SYSCTL
during early boot. This works for all SYSCTL types both statically and
dynamically created ones, except for the SYSCTL NODE type and SYSCTLs
which belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added to
be used in the case a tunable sysctl has a custom initialisation
function allowing the sysctl to still be marked as a tunable. The
kernel SYSCTL API is mostly the same, with a few exceptions for some
special operations like iterating childrens of a static/extern SYSCTL
node. This operation should probably be made into a factored out
common macro, hence some device drivers use this. The reason for
changing the SYSCTL API was the need for a SYSCTL parent OID pointer
and not only the SYSCTL parent OID list pointer in order to quickly
generate the sysctl path. The motivation behind this patch is to avoid
parameter loading cludges inside the OFED driver subsystem. Instead of
adding special code to the OFED driver subsystem to post-load tunables
into dynamically created sysctls, we generalize this in the kernel.

Other changes:
- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"
to "hw.pcic.intr_mask".
- Removed redundant TUNABLE statements throughout the kernel.
- Some minor code rewrites in connection to removing not needed
TUNABLE statements.
- Added a missing SYSCTL_DECL().
- Wrapped two very long lines.
- Avoid malloc()/free() inside sysctl string handling, in case it is
called to initialize a sysctl from a tunable, hence malloc()/free() is
not ready when sysctls from the sysctl dataset are registered.
- Bumped FreeBSD version to indicate SYSCTL API change.

MFC after:	2 weeks
Sponsored by:	Mellanox Technologies
2014-06-27 16:33:43 +00:00
..
sys MFV r266766: 2014-05-27 19:46:11 +00:00
arc.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
bplist.c MFV r247580: 2013-03-19 12:51:18 +00:00
bpobj.c MFV r258374: 2013-12-24 07:14:25 +00:00
bptree.c MFV r260155: 2014-01-02 08:10:35 +00:00
dbuf.c MFV r264666: 2014-04-18 21:15:12 +00:00
ddt_zap.c
ddt.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
dmu_diff.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
dmu_object.c MFV r258374: 2013-12-24 07:14:25 +00:00
dmu_objset.c MFV r266766: 2014-05-27 19:46:11 +00:00
dmu_send.c MFV r264829: 2014-04-23 20:29:46 +00:00
dmu_traverse.c traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT 2014-01-17 10:23:46 +00:00
dmu_tx.c MFV r258923: 4188 assertion failed in dmu_tx_hold_free(): dn_datablkshift != 0 2013-12-18 21:45:46 +00:00
dmu_zfetch.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
dmu.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
dnode_sync.c MFV r264666: 2014-04-18 21:15:12 +00:00
dnode.c MFV r264666: 2014-04-18 21:15:12 +00:00
dsl_bookmark.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
dsl_dataset.c MFV r264829: 2014-04-23 20:29:46 +00:00
dsl_deadlist.c
dsl_deleg.c MFV r248217: 2013-04-06 10:39:38 +00:00
dsl_destroy.c MFV r264829: 2014-04-23 20:29:46 +00:00
dsl_dir.c MFV 266913+266914: 2014-05-31 01:00:22 +00:00
dsl_pool.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
dsl_prop.c MFV r251620: 2013-06-11 19:12:06 +00:00
dsl_scan.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
dsl_synctask.c MFV r248217: 2013-04-06 10:39:38 +00:00
dsl_userhold.c Fix ZFS deadlock when sending a snapshot which is mounted. 2013-11-18 11:28:19 +00:00
gzip.c
lz4.c Introduce allocation cache to store LZ4 compression contexts without kicking 2013-11-14 15:54:54 +00:00
lzjb.c Improve lzjb decompress performance by reorganizing the code 2013-10-08 01:38:24 +00:00
metaslab.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
range_tree.c MFV r264666: 2014-04-18 21:15:12 +00:00
refcount.c MFV r247580: 2013-03-19 12:51:18 +00:00
rrwlock.c MFV r247580: 2013-03-19 12:51:18 +00:00
sa.c MFV r251620: 2013-06-11 19:12:06 +00:00
sha256.c
spa_config.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
spa_errlog.c MFV r251621: 2013-06-11 19:16:14 +00:00
spa_history.c MFV r248217: 2013-04-06 10:39:38 +00:00
spa_misc.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
spa.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
space_map.c MFV r264666: 2014-04-18 21:15:12 +00:00
space_reftree.c MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control 2013-11-28 19:37:22 +00:00
THIRDPARTYLICENSE.lz4 MFV r245512: 2013-02-09 06:39:28 +00:00
THIRDPARTYLICENSE.lz4.descrip MFV r245512: 2013-02-09 06:39:28 +00:00
trim_map.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
txg.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
uberblock.c MFV r248217: 2013-04-06 10:39:38 +00:00
unique.c
vdev_cache.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
vdev_disk.c MFV r264666: 2014-04-18 21:15:12 +00:00
vdev_file.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
vdev_geom.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
vdev_label.c MFV r260153: 2014-01-01 01:26:39 +00:00
vdev_mirror.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
vdev_missing.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
vdev_queue.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
vdev_raidz.c MFV r255255: 4045 zfs write throttle & i/o scheduler performance work 2013-11-26 09:57:14 +00:00
vdev_root.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
vdev.c Add the ability to set a minimum ashift size for ZFS pool creation or root level 2014-04-24 01:06:03 +00:00
zap_leaf.c MFV r264666: 2014-04-18 21:15:12 +00:00
zap_micro.c MFV r264666: 2014-04-18 21:15:12 +00:00
zap.c MFV r264666: 2014-04-18 21:15:12 +00:00
zfeature.c Fix build on platforms where atomic_swap_64 is not available. 2014-01-02 03:24:44 +00:00
zfs_acl.c Enable kernel-specific code for FreeBSD also on other systems that use 2013-06-30 23:14:55 +00:00
zfs_byteswap.c MFV r246653: 2013-02-23 11:21:05 +00:00
zfs_ctldir.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
zfs_debug.c MFV r254079: 2013-08-08 23:38:31 +00:00
zfs_dir.c zfs: getnewvnode_reserve must be called outside of a zfs transaction 2014-01-16 12:22:46 +00:00
zfs_fm.c
zfs_fuid.c MFV r246653: 2013-02-23 11:21:05 +00:00
zfs_ioctl.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
zfs_log.c MFV r251620: 2013-06-11 19:12:06 +00:00
zfs_onexit.c Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
zfs_replay.c MFV r248217: 2013-04-06 10:39:38 +00:00
zfs_rlock.c MFV r251620: 2013-06-11 19:12:06 +00:00
zfs_sa.c MFV r251620: 2013-06-11 19:12:06 +00:00
zfs_vfsops.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
zfs_vnops.c Fix a panic in zfs_rename(). 2014-04-13 01:15:37 +00:00
zfs_znode.c fix a build problem with INVARIANTS enabled introduced in r260704 2014-01-16 13:44:37 +00:00
zfs.conf
zil.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
zio_checksum.c MFV r254750: 2013-09-21 00:17:26 +00:00
zio_compress.c Add kstat entries for ZFS compression statistics. 2013-08-21 19:40:43 +00:00
zio_inject.c MFV r248217: 2013-04-06 10:39:38 +00:00
zio.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
zle.c
zrlock.c
zvol.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00