aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_devstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_devstat.c')
-rw-r--r--sys/kern/subr_devstat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index c29134203cdb..84a98d0f2462 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -354,7 +354,9 @@ devstat_end_transaction_bio_bt(struct devstat *ds, struct bio *bp,
if (bp->bio_cmd == BIO_DELETE)
flg = DEVSTAT_FREE;
- else if (bp->bio_cmd == BIO_READ)
+ else if ((bp->bio_cmd == BIO_READ)
+ || ((bp->bio_cmd == BIO_ZONE)
+ && (bp->bio_zone.zone_cmd == DISK_ZONE_REPORT_ZONES)))
flg = DEVSTAT_READ;
else if (bp->bio_cmd == BIO_WRITE)
flg = DEVSTAT_WRITE;