Skip to content

Commit

Permalink
Suppress kmem_alloc() warning in zfs_prop_set_special()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
behlendorf committed Sep 16, 2011
1 parent a65666f commit fa6e5ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit fa6e5ce

Please sign in to comment.