Only reduce __zio_execute() stack usage in kernel space
[zfs.git] / module / zfs / zio.c
index 638105a..dab417c 100644 (file)
@@ -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);