6494 ASSERT supported zio_types for file and disk vdevs

Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Albert Lee <trisk@omniti.com>
Author: Steven Hartland <steven.hartland@multiplay.co.uk>

illumos/illumos-gate@f693d300fb
This commit is contained in:
Alexander Motin 2016-01-26 13:40:22 +00:00
parent cfb45c466f
commit d17adec15f
2 changed files with 4 additions and 0 deletions

View File

@ -796,6 +796,8 @@ vdev_disk_io_start(zio_t *zio)
return;
}
ASSERT(zio->io_type == ZIO_TYPE_READ || zio->io_type == ZIO_TYPE_WRITE);
vb = kmem_alloc(sizeof (vdev_buf_t), KM_SLEEP);
vb->vb_io = zio;

View File

@ -211,6 +211,8 @@ vdev_file_io_start(zio_t *zio)
return;
}
ASSERT(zio->io_type == ZIO_TYPE_READ || zio->io_type == ZIO_TYPE_WRITE);
vb = kmem_alloc(sizeof (vdev_buf_t), KM_SLEEP);
vb->vb_io = zio;