Deleted Added
full compact
vdev_impl.h (256956) vdev_impl.h (258632)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 85 unchanged lines hidden (view full) ---

94};
95
96struct vdev_cache {
97 avl_tree_t vc_offset_tree;
98 avl_tree_t vc_lastused_tree;
99 kmutex_t vc_lock;
100};
101
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 85 unchanged lines hidden (view full) ---

94};
95
96struct vdev_cache {
97 avl_tree_t vc_offset_tree;
98 avl_tree_t vc_lastused_tree;
99 kmutex_t vc_lock;
100};
101
102typedef struct vdev_queue_class {
103 uint32_t vqc_active;
104
105 /*
106 * Sorted by offset or timestamp, depending on if the queue is
107 * LBA-ordered vs FIFO.
108 */
109 avl_tree_t vqc_queued_tree;
110} vdev_queue_class_t;
111
102struct vdev_queue {
112struct vdev_queue {
103 avl_tree_t vq_deadline_tree;
104 avl_tree_t vq_read_tree;
105 avl_tree_t vq_write_tree;
106 avl_tree_t vq_pending_tree;
107 hrtime_t vq_io_complete_ts;
113 vdev_t *vq_vdev;
114 vdev_queue_class_t vq_class[ZIO_PRIORITY_NUM_QUEUEABLE];
115 avl_tree_t vq_active_tree;
116 uint64_t vq_last_offset;
117 hrtime_t vq_io_complete_ts; /* time last i/o completed */
108 kmutex_t vq_lock;
109 uint64_t vq_lastoffset;
110};
111
112/*
113 * Virtual device descriptor
114 */
115struct vdev {

--- 243 unchanged lines hidden ---
118 kmutex_t vq_lock;
119 uint64_t vq_lastoffset;
120};
121
122/*
123 * Virtual device descriptor
124 */
125struct vdev {

--- 243 unchanged lines hidden ---