]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
Use vmem_alloc() for nvlists
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 5 Feb 2015 20:43:37 +0000 (12:43 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Feb 2015 19:00:08 +0000 (11:00 -0800)
commit77aef6f60ea29f6d3769addc778db6328ac85755
tree493dbe281fd2c93c0f55806d2b46076d5d71263b
parentafe373260ebf96ca5482b9ccbcef5915c47d18f7
Use vmem_alloc() for nvlists

Several of the nvlist functions may perform allocations larger than
the 32k warning threshold.  Convert them to use vmem_alloc() so the
best allocator is used.

Commit efcd79a retired KM_NODEBUG which was used to suppress large
allocation warnings.  Concurrently the large allocation warning threshold
was increased from 8k to 32k.  The goal was to identify the remaining
locations, such as this one, where the allocation can be larger than
32k.  This patch is expected fine tuning resulting for the kmem-rework
changes, see commit 6e9710f.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3057
Closes #3079
Closes #3081
module/nvpair/nvpair_alloc_spl.c
module/zfs/spa.c
module/zfs/zfs_ioctl.c