diff options
author | mav <mav@FreeBSD.org> | 2014-07-24 14:55:45 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-07-24 14:55:45 +0000 |
commit | 2fab8ef49d349bd7963072555a6619d3cece3d07 (patch) | |
tree | 6751693127075b4542707685aa37c753bd4abccb /sys/cddl/contrib | |
parent | 3c9102634ee3452bd839123e65d5f4c1510c84e9 (diff) | |
download | FreeBSD-src-2fab8ef49d349bd7963072555a6619d3cece3d07.zip FreeBSD-src-2fab8ef49d349bd7963072555a6619d3cece3d07.tar.gz |
MFC r268420:
Remove IO_SYNC flag when writing extended file attributes on ZFS.
While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS. UFS does not do sync there too.
Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.
Diffstat (limited to 'sys/cddl/contrib')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c index 4a86fb2..d243b80 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c @@ -6855,7 +6855,7 @@ vop_setextattr { va.va_size = 0; error = VOP_SETATTR(vp, &va, ap->a_cred); if (error == 0) - VOP_WRITE(vp, ap->a_uio, IO_UNIT | IO_SYNC, ap->a_cred); + VOP_WRITE(vp, ap->a_uio, IO_UNIT, ap->a_cred); VOP_UNLOCK(vp, 0); vn_close(vp, flags, ap->a_cred, td); |