HomeFreeBSD

ZIO: Remove READY pipeline stage from root ZIOs

Description

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

Details

Provenance
mavAuthored on Oct 25 2023, 10:22 PM
GitHub <noreply@github.com>Committed on Oct 25 2023, 10:22 PM
Parents
rG05c4710e8958: Revert "zvol: Temporally disable blk-mq"
Branches
Unknown
Tags
Unknown