svn commit: r277699 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Alexander Motin
mav at FreeBSD.org
Sun Jan 25 14:25:45 UTC 2015
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)
More information about the svn-src-stable
mailing list