From 8769db396691978a48abee1d1855709d7b01d4d0 Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Fri, 20 Sep 2013 09:30:04 -0500 Subject: [PATCH] Allocate the ioctl "output" nvlist with KM_PUSHPAGE. Some ZFS errors such as certain snapshot failures can occur in the sync task context. Because they may require additional memory allocations, the initial nvlist must be allocated with KM_PUSHPAGE. Signed-off-by: Brian Behlendorf Issue #1746 Issue #1737 --- module/zfs/zfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index acc54e5a7..be782ba80 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -5660,7 +5660,7 @@ zfsdev_ioctl(struct file *filp, unsigned cmd, unsigned long arg) } } - outnvl = fnvlist_alloc(); + VERIFY0(nvlist_alloc(&outnvl, NV_UNIQUE_NAME, KM_PUSHPAGE)); error = vec->zvec_func(zc->zc_name, innvl, outnvl); if (error == 0 && vec->zvec_allow_log &&