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. Reviewed by: delphij, jpaetzel, silence on fs@ MFC after: 2 weeks Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
ad3cd840f2
commit
e327a057a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268420
@ -6875,7 +6875,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);
|
||||
|
Loading…
Reference in New Issue
Block a user