diff options
-rw-r--r-- | module/zfs/vdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 302458b73..0178bfdec 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -2982,7 +2982,8 @@ vdev_stat_update(zio_t *zio, uint64_t psize) * The bytes/ops/histograms are recorded at the leaf level and * aggregated into the higher level vdevs in vdev_get_stats(). */ - if (vd->vdev_ops->vdev_op_leaf) { + if (vd->vdev_ops->vdev_op_leaf && + (zio->io_priority < ZIO_PRIORITY_NUM_QUEUEABLE)) { vs->vs_ops[type]++; vs->vs_bytes[type] += psize; |