aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zio_impl.h
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2023-10-25 18:22:25 -0400
committerGitHub <[email protected]>2023-10-25 15:22:25 -0700
commit3afdc97d91c24192db51b67762126a8d99d433db (patch)
tree9fece2b39d8953618a0a6808b3d71bfcbe584999 /include/sys/zio_impl.h
parent05c4710e8958832afc2868102c9535a4f18115be (diff)
ZIO: Remove READY pipeline stage from root ZIOs
zio_root() has no arguments for ready callback or parent ZIO. Except one recent case in ZIL code if root ZIOs ever have a parent it is also a root ZIO. It means we do not need READY pipeline stage for them, which takes some time to process, but even more time to wait for the children and be woken by them, and both for no good reason. The most visible effect of this change is that it avoids one taskq wakeup per ZIL block written, previously used to run zio_ready() for lwb_root_zio and skipped now. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #15398
Diffstat (limited to 'include/sys/zio_impl.h')
-rw-r--r--include/sys/zio_impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/zio_impl.h b/include/sys/zio_impl.h
index 29a05986c..febe0a87b 100644
--- a/include/sys/zio_impl.h
+++ b/include/sys/zio_impl.h
@@ -159,6 +159,9 @@ enum zio_stage {
ZIO_STAGE_DONE = 1 << 25 /* RWFCI */
};
+#define ZIO_ROOT_PIPELINE \
+ ZIO_STAGE_DONE
+
#define ZIO_INTERLOCK_STAGES \
(ZIO_STAGE_READY | \
ZIO_STAGE_DONE)