From: Brian Behlendorf Date: Fri, 31 Aug 2012 03:56:22 +0000 (-0700) Subject: Suppress task_hash_table_init() large allocation warning X-Git-Tag: zfs-0.8.0-rc1~152^2~350 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46b3945d5da42fe8bf3c9ff8e28dbb8cb88095b9;p=zfs 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 Closes #93 --- diff --git a/module/spl/spl-tsd.c b/module/spl/spl-tsd.c index ce5560a1e..b43da7746 100644 --- a/module/spl/spl-tsd.c +++ b/module/spl/spl-tsd.c @@ -355,7 +355,8 @@ tsd_hash_table_init(uint_t bits) if (table == 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) { kmem_free(table, sizeof(tsd_hash_table_t)); SRETURN(NULL);