HomeFreeBSD

Fix accounting error for pending sync IO ops in zpool iostat

Description

Fix accounting error for pending sync IO ops in zpool iostat

Currently vdev_queue_class_length is responsible for checking how long
the queue length is, however, it doesn't check the length when a list
is used, rather it just returns whether it is empty or not. To fix this
I added a counter variable to vdev_queue_class to keep track of the sync
IO ops, and changed vdev_queue_class_length to reference this variable
instead.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: MigeljanImeri <ImeriMigel@gmail.com>
Closes #15478

Details

Provenance
MigeljanImeri <78048439+MigeljanImeri@users.noreply.github.com>Authored on Nov 7 2023, 5:06 PM
Tony Hutter <hutter2@llnl.gov>Committed on Nov 16 2023, 10:23 PM
Parents
rG44c8ff9b0ce2: Linux 6.6 compat: fix implicit conversion error with debug build
Branches
Unknown
Tags
Unknown