Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2015 14:25:45 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r277699 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201501251425.t0PEPjV0097279@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Jan 25 14:25:44 2015
New Revision: 277699
URL: https://svnweb.freebsd.org/changeset/base/277699

Log:
  MFC r276913: Use new optimized dmu_read_uio_dbuf() for ZVOLs in device mode.
  
  This slightly reduces overhead by avoiding dnode_hold()/dnode_rele() calls.

Modified:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c	Sun Jan 25 13:15:12 2015	(r277698)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c	Sun Jan 25 14:25:44 2015	(r277699)
@@ -1819,7 +1819,7 @@ zvol_read(struct cdev *dev, struct uio *
 		if (bytes > volsize - uio->uio_loffset)
 			bytes = volsize - uio->uio_loffset;
 
-		error =  dmu_read_uio(zv->zv_objset, ZVOL_OBJ, uio, bytes);
+		error =  dmu_read_uio_dbuf(zv->zv_dbuf, uio, bytes);
 		if (error) {
 			/* convert checksum errors into IO errors */
 			if (error == ECKSUM)



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