mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 19:39:35 +03:00
Suppress large kmem_alloc() warning.
Observed during failure mode testing, dsl_scan_setup_sync() allocates 73920 bytes. This is way over the limit of what is wise to do with a kmem_alloc() and it should probably be moved to a slab. For now I'm just flagging it with KM_NODEBUG to quiet the error until this can be revisited.
This commit is contained in:
parent
5c1bad0013
commit
398f129ca3
@ -211,8 +211,8 @@ dsl_scan_setup_sync(void *arg1, void *arg2, dmu_tx_t *tx)
|
|||||||
/* back to the generic stuff */
|
/* back to the generic stuff */
|
||||||
|
|
||||||
if (dp->dp_blkstats == NULL) {
|
if (dp->dp_blkstats == NULL) {
|
||||||
dp->dp_blkstats =
|
dp->dp_blkstats = kmem_alloc(sizeof (zfs_all_blkstats_t),
|
||||||
kmem_alloc(sizeof (zfs_all_blkstats_t), KM_SLEEP);
|
KM_SLEEP | KM_NODEBUG);
|
||||||
}
|
}
|
||||||
bzero(dp->dp_blkstats, sizeof (zfs_all_blkstats_t));
|
bzero(dp->dp_blkstats, sizeof (zfs_all_blkstats_t));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user