Suppress kmem_alloc() warning in zfs_prop_set_special()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 16 Sep 2011 03:23:50 +0000 (20:23 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 16 Sep 2011 03:26:51 +0000 (20:26 -0700)
Suppress the warning for this large kmem_alloc() because it is not
that far over the warning threshhold (8k) and it is short lived.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/zfs_ioctl.c

index 088c64b..c8ff035 100644 (file)
@@ -2175,7 +2175,8 @@ zfs_prop_set_special(const char *dsname, zprop_source_t source,
                if (err == 0 && intval >= ZPL_VERSION_USERSPACE) {
                        zfs_cmd_t *zc;
 
-                       zc = kmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP);
+                       zc = kmem_zalloc(sizeof (zfs_cmd_t),
+                           KM_SLEEP | KM_NODEBUG);
                        (void) strcpy(zc->zc_name, dsname);
                        (void) zfs_ioc_userspace_upgrade(zc);
                        kmem_free(zc, sizeof (zfs_cmd_t));