]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Allow 16M zio buffers in user space
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 5 Nov 2016 04:54:48 +0000 (04:54 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Nov 2016 18:26:17 +0000 (10:26 -0800)
Only restrict the maximum zio alloc size to 32-bit kernel space.
The same virtual address space limitations don't apply to user
space.  This resolves a memory allocation failure in raidz_test
where it expects to be able to exercises all valid zio sizes.

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

index 638e3d805a0ad7d936c1df9d0a266b2f7736badd..223c20abe424deb88f0d79eaa0a429ea59353e66 100644 (file)
@@ -131,7 +131,7 @@ zio_init(void)
                size_t align = 0;
                size_t cflags = (size > zio_buf_debug_limit) ? KMC_NODEBUG : 0;
 
-#ifdef _ILP32
+#if defined(_ILP32) && defined(_KERNEL)
                /*
                 * Cache size limited to 1M on 32-bit platforms until ARC
                 * buffers no longer require virtual address space.