summaryrefslogtreecommitdiffstats
path: root/module/zfs/zio.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-01-08 16:16:46 -0800
committerBrian Behlendorf <[email protected]>2013-01-09 10:34:35 -0800
commit4cec9b2dc79c8132ef9093921a0c14529cde775f (patch)
tree7adce9e9bc97501185a54f6a6a00d199bb122290 /module/zfs/zio.c
parentc1cdd9900b7b676fd1d1952125a5acd3435db5d7 (diff)
Only reduce __zio_execute() stack usage in kernel space
Related to 91579709fccd3e55a21970742b66c388fb1403db we need to be very careful about not overrunning the stack in kernel space. However, in user space we're already allowing slightly larger stacks so this stack usage optimization is not required there. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zio.c')
-rw-r--r--module/zfs/zio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index 638105a09..dab417c20 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -1281,6 +1281,7 @@ __zio_execute(zio_t *zio)
return;
}
+#ifdef _KERNEL
/*
* If we executing in the context of the tx_sync_thread,
* or we are performing pool initialization outside of a
@@ -1293,6 +1294,7 @@ __zio_execute(zio_t *zio)
zio_taskq_dispatch(zio, ZIO_TASKQ_ISSUE, cut);
return;
}
+#endif
zio->io_stage = stage;
rv = zio_pipeline[highbit(stage) - 1](zio);