aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zfs/vdev_disk.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c
index 0196f3945..9cfc080e6 100644
--- a/module/zfs/vdev_disk.c
+++ b/module/zfs/vdev_disk.c
@@ -701,11 +701,17 @@ vdev_disk_io_start(zio_t *zio)
zio_execute(zio);
return;
case ZIO_TYPE_WRITE:
- flags = WRITE;
+ if (zio->io_priority == ZIO_PRIORITY_SYNC_WRITE)
+ flags = WRITE_SYNC;
+ else
+ flags = WRITE;
break;
case ZIO_TYPE_READ:
- flags = READ;
+ if (zio->io_priority == ZIO_PRIORITY_SYNC_READ)
+ flags = READ_SYNC;
+ else
+ flags = READ;
break;
default: