svn commit: r242566 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Sun Nov 4 13:48:50 UTC 2012
Author: avg
Date: Sun Nov 4 13:48:48 2012
New Revision: 242566
URL: http://svn.freebsd.org/changeset/base/242566
Log:
zfs_freebsd_close: call zfs_close with count=1 instead of count=0
Otherwise we may be leaking z_sync_cnt, which may lead to unnecessary
ZIL sync-ing.
MFC after: 12 days
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Sun Nov 4 13:46:28 2012 (r242565)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Sun Nov 4 13:48:48 2012 (r242566)
@@ -5661,7 +5661,7 @@ zfs_freebsd_close(ap)
} */ *ap;
{
- return (zfs_close(ap->a_vp, ap->a_fflag, 0, 0, ap->a_cred, NULL));
+ return (zfs_close(ap->a_vp, ap->a_fflag, 1, 0, ap->a_cred, NULL));
}
static int
More information about the svn-src-all
mailing list