aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zfs/vdev_mirror.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/module/zfs/vdev_mirror.c b/module/zfs/vdev_mirror.c
index e0884dc3c..e3d772ac2 100644
--- a/module/zfs/vdev_mirror.c
+++ b/module/zfs/vdev_mirror.c
@@ -89,14 +89,7 @@ static const zio_vsd_ops_t vdev_mirror_vsd_ops = {
static int
vdev_mirror_pending(vdev_t *vd)
{
- vdev_queue_t *vq = &vd->vdev_queue;
- int pending;
-
- mutex_enter(&vq->vq_lock);
- pending = avl_numnodes(&vq->vq_pending_tree);
- mutex_exit(&vq->vq_lock);
-
- return (pending);
+ return avl_numnodes(&vd->vdev_queue.vq_pending_tree);
}
static mirror_map_t *