6770534 zvols do not observe character device semantics
authorEric Taylor <Eric.Taylor@Sun.COM>
Mon, 12 Jan 2009 11:10:12 -0700
changeset 8524 a56dffa8fba9
parent 8523 0ff96c956838
child 8525 e0e0e525d0f8
6770534 zvols do not observe character device semantics
usr/src/uts/common/fs/zfs/zvol.c
--- a/usr/src/uts/common/fs/zfs/zvol.c	Mon Jan 12 09:49:43 2009 -0800
+++ b/usr/src/uts/common/fs/zfs/zvol.c	Mon Jan 12 11:10:12 2009 -0700
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -1324,6 +1324,8 @@
 			break;
 	}
 	zfs_range_unlock(rl);
+	if (!zil_disable)
+		zil_commit(zv->zv_zilog, UINT64_MAX, ZVOL_OBJ);
 	return (error);
 }