Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2014 11:29:55 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271308 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201409091129.s89BTtZJ005816@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Sep  9 11:29:55 2014
New Revision: 271308
URL: http://svnweb.freebsd.org/changeset/base/271308

Log:
  Make ZVOL writes in device mode support IO_SYNC flag.
  
  MFC after:	1 month

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c	Tue Sep  9 10:52:50 2014	(r271307)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c	Tue Sep  9 11:29:55 2014	(r271308)
@@ -1633,7 +1633,7 @@ zvol_write(struct cdev *dev, struct uio 
 #ifdef sun
 	sync = !(zv->zv_flags & ZVOL_WCE) ||
 #else
-	sync =
+	sync = (ioflag & IO_SYNC) ||
 #endif
 	    (zv->zv_objset->os_sync == ZFS_SYNC_ALWAYS);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409091129.s89BTtZJ005816>