]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/vdev_file.c
Illumos #3949, #3950, #3952, #3953
[mirror_zfs.git] / module / zfs / vdev_file.c
index 5eadc560d730ba6ae213286d23c8fd5d461639b9..c0d062b0e445ae373d28c5ebfa7c6f2840802e83 100644 (file)
@@ -162,7 +162,6 @@ vdev_file_io_strategy(void *arg)
 static int
 vdev_file_io_start(zio_t *zio)
 {
-       spa_t *spa = zio->io_spa;
        vdev_t *vd = zio->io_vd;
        vdev_file_t *vf = vd->vdev_tsd;
 
@@ -185,8 +184,8 @@ vdev_file_io_start(zio_t *zio)
                return (ZIO_PIPELINE_CONTINUE);
        }
 
-       spa_taskq_dispatch_ent(spa, ZIO_TYPE_FREE, ZIO_TASKQ_ISSUE,
-           vdev_file_io_strategy, zio, 0, &zio->io_tqent);
+       VERIFY3U(taskq_dispatch(system_taskq, vdev_file_io_strategy, zio,
+           TQ_SLEEP), !=, 0);
 
        return (ZIO_PIPELINE_STOP);
 }