| 499 | } |
| 500 | |
| 501 | void |
| 502 | vdev_queue_fini(vdev_t *vd) |
| 503 | { |
| 504 | vdev_queue_t *vq = &vd->vdev_queue; |
| 505 | |
| 506 | for (zio_priority_t p = 0; p < ZIO_PRIORITY_NUM_QUEUEABLE; p++) |
| 507 | avl_destroy(vdev_queue_class_tree(vq, p)); |
| 508 | avl_destroy(&vq->vq_active_tree); |
| 509 | avl_destroy(vdev_queue_type_tree(vq, ZIO_TYPE_READ)); |
| 510 | avl_destroy(vdev_queue_type_tree(vq, ZIO_TYPE_WRITE)); |
| 511 | avl_destroy(vdev_queue_type_tree(vq, ZIO_TYPE_TRIM)); |
| 512 | |
| 513 | mutex_destroy(&vq->vq_lock); |
| 514 | } |
| 515 | |
| 516 | static void |
| 517 | vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio) |
no test coverage detected