mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
Suppress task_hash_table_init() large allocation warning
When various kernel debuging options are enabled this allocation may be larger than usual as shown by the following warning. It is in no way harmful so we suppress the warning. SPL: large kmem_alloc(40960, 0x80d0) at tsd_hash_table_init:358 (76495/76495) Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #93
This commit is contained in:
parent
efcd0ca32d
commit
46b3945d5d
@ -355,7 +355,8 @@ tsd_hash_table_init(uint_t bits)
|
|||||||
if (table == NULL)
|
if (table == NULL)
|
||||||
SRETURN(NULL);
|
SRETURN(NULL);
|
||||||
|
|
||||||
table->ht_bins = kmem_zalloc(sizeof(tsd_hash_bin_t) * size, KM_SLEEP);
|
table->ht_bins = kmem_zalloc(sizeof(tsd_hash_bin_t) * size,
|
||||||
|
KM_SLEEP | KM_NODEBUG);
|
||||||
if (table->ht_bins == NULL) {
|
if (table->ht_bins == NULL) {
|
||||||
kmem_free(table, sizeof(tsd_hash_table_t));
|
kmem_free(table, sizeof(tsd_hash_table_t));
|
||||||
SRETURN(NULL);
|
SRETURN(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user