Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/module/zfs/vdev_queue.c
Show First 20 Lines • Show All 783 Lines • ▼ Show 20 Lines | vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio) | ||||
} | } | ||||
if (first == last) | if (first == last) | ||||
return (NULL); | return (NULL); | ||||
size = IO_SPAN(first, last); | size = IO_SPAN(first, last); | ||||
ASSERT3U(size, <=, maxblocksize); | ASSERT3U(size, <=, maxblocksize); | ||||
abd = abd_alloc_gang_abd(); | abd = abd_alloc_gang(); | ||||
if (abd == NULL) | if (abd == NULL) | ||||
return (NULL); | return (NULL); | ||||
aio = zio_vdev_delegated_io(first->io_vd, first->io_offset, | aio = zio_vdev_delegated_io(first->io_vd, first->io_offset, | ||||
abd, size, first->io_type, zio->io_priority, | abd, size, first->io_type, zio->io_priority, | ||||
flags | ZIO_FLAG_DONT_CACHE | ZIO_FLAG_DONT_QUEUE, | flags | ZIO_FLAG_DONT_CACHE | ZIO_FLAG_DONT_QUEUE, | ||||
vdev_queue_agg_io_done, NULL); | vdev_queue_agg_io_done, NULL); | ||||
aio->io_timestamp = first->io_timestamp; | aio->io_timestamp = first->io_timestamp; | ||||
▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines |