Use vmem_alloc() for zfs_ioc_pool_get_history()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 May 2011 16:59:52 +0000 (09:59 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 May 2011 16:59:52 +0000 (09:59 -0700)
commit34b84cb831695b276788493048ea34f8af8d5bdf
tree040da059de330d9a1aa1bd71a0530b576dfd4f2c
parent3613204cd7e3ab1ae658e31dac875e58827a6655
Use vmem_alloc() for zfs_ioc_pool_get_history()

The default buffer size when requesting history is 128k.  This
is far to large for a kmem_alloc() so instead use the slower
vmem_alloc().  This path has no performance concerns and the
buffer is immediately free'd after its contents are copied to
the user space buffer.
module/zfs/zfs_ioctl.c