diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2019-03-22 09:11:45 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2019-03-22 09:11:45 +0000 |
commit | c1581f4f4dfb307bdea683a4a8bdc94c5f7617a1 (patch) | |
tree | 2fc217b54fe7cc714bd2d9d566d9332d89113490 /sys/cddl/contrib/opensolaris/uts/common | |
parent | 7de4bd92b8a1f510c88ea3b5af0bcb106af6ba11 (diff) | |
download | src-c1581f4f4dfb307bdea683a4a8bdc94c5f7617a1.tar.gz src-c1581f4f4dfb307bdea683a4a8bdc94c5f7617a1.zip |
ZFS vdev_file: use correct value for waitfor parameter of VOP_FSYNC
PR: 236475
Reported by: asomers
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=345410
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c index 6cc5343b5e69..51ce7404ce3f 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c @@ -239,8 +239,13 @@ vdev_file_io_start(zio_t *zio) switch (zio->io_cmd) { case DKIOCFLUSHWRITECACHE: +#ifdef illumos zio->io_error = VOP_FSYNC(vf->vf_vnode, FSYNC | FDSYNC, kcred, NULL); +#else + zio->io_error = VOP_FSYNC(vf->vf_vnode, MNT_WAIT, + kcred, NULL); +#endif break; default: zio->io_error = SET_ERROR(ENOTSUP); |