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 <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #15398
This commit is contained in:
Alexander Motin
2023-10-25 18:22:25 -04:00
committed by GitHub
parent 05c4710e89
commit 3afdc97d91
4 changed files with 49 additions and 14 deletions
+3
View File
@@ -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)