diff options
author | Chris Dunlop <[email protected]> | 2015-03-16 12:21:21 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-03-24 13:17:44 -0700 |
commit | d07b7c7f210e3f92775ad93a7306812edf524bfc (patch) | |
tree | b2e323ad1c77e6ab897ffa2e675a72126fd94ec8 /module/zfs/zio_inject.c | |
parent | bc88866657979c5658441e201e19df365c67ddfe (diff) |
Reduce size of zfs_sb_t: allocate z_hold_mtx separately
zfs_sb_t has grown to the point where using kmem_zalloc() for allocations
is triggering the 32k warning threshold.
We can't safely convert this entire allocation to use vmem_alloc() instead
of kmem_alloc() because the backing_dev_info structure is embedded here.
It depends on the bit_waitqueue() function which won't behave properly
when given a virtual address.
Instead, use vmem_alloc() to allocate the z_hold_mtx array separately.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chris Dunlop <[email protected]>
Closes #3178
Diffstat (limited to 'module/zfs/zio_inject.c')
0 files changed, 0 insertions, 0 deletions