From 7f6884f419f822f89609f6ed7595f78d12c31834 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 10 Jun 2014 14:37:13 -0700 Subject: [PATCH] Revert "Fix __zio_execute() asynchronous dispatch" This reverts commit 91579709fccd3e55a21970742b66c388fb1403db which limited the asynchronous dispatch to kernel space. We want to do this for two reasons: 1) While we have slightly more headroom in user space excessively deep stacks have been observed while running ztest, see #2293. 2) Removing this conditional makes the pipeline behave consistently regardless of if it's executing in kernel space or user space. This way we're more likely to uncover subtle issues with ztest. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #2384 --- module/zfs/zio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 26c4989794..332d50c696 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -1342,7 +1342,6 @@ __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 @@ -1357,7 +1356,6 @@ __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);