aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_onexit.c
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2013-09-14 22:09:09 -0500
committerBrian Behlendorf <[email protected]>2013-09-25 15:44:22 -0700
commitc5322236eccc7c5e1d23983c78928ad566685e7c (patch)
treea65c78fb9f8411f872735dcaf2bf827e2addfd27 /module/zfs/zfs_onexit.c
parentcbfa294de4937ae1af5845e9f765a3dc188cbcef (diff)
Fix several new KM_SLEEP warnings
A handful of allocations now occur in the sync path and need to use KM_PUSHPAGE. These were introduced by commit 13fe019. Signed-off-by: Brian Behlendorf <[email protected]> Issue #1746 Issue #1737
Diffstat (limited to 'module/zfs/zfs_onexit.c')
-rw-r--r--module/zfs/zfs_onexit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_onexit.c b/module/zfs/zfs_onexit.c
index 2f60b5e4d..41ae3fdb9 100644
--- a/module/zfs/zfs_onexit.c
+++ b/module/zfs/zfs_onexit.c
@@ -155,7 +155,7 @@ zfs_onexit_add_cb(minor_t minor, void (*func)(void *), void *data,
if (error)
return (error);
- ap = kmem_alloc(sizeof (zfs_onexit_action_node_t), KM_SLEEP);
+ ap = kmem_alloc(sizeof (zfs_onexit_action_node_t), KM_PUSHPAGE);
list_link_init(&ap->za_link);
ap->za_func = func;
ap->za_data = data;