summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-10-06 12:31:51 +0000
committermav <mav@FreeBSD.org>2014-10-06 12:31:51 +0000
commite13f201bd6b0303e782cfa6b522e8b9810ee2629 (patch)
tree9f92b5b10b8b419980393ffd23b5aebefccce891 /sys/cddl
parent5aadc8e180a6ab8f7facb6ed823e8747a086da80 (diff)
downloadFreeBSD-src-e13f201bd6b0303e782cfa6b522e8b9810ee2629.zip
FreeBSD-src-e13f201bd6b0303e782cfa6b522e8b9810ee2629.tar.gz
MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
index 1d7b98d..f05c90d 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
@@ -1634,7 +1634,7 @@ zvol_write(struct cdev *dev, struct uio *uio, int ioflag)
#ifdef sun
sync = !(zv->zv_flags & ZVOL_WCE) ||
#else
- sync =
+ sync = (ioflag & IO_SYNC) ||
#endif
(zv->zv_objset->os_sync == ZFS_SYNC_ALWAYS);
OpenPOWER on IntegriCloud