diff options
author | mav <mav@FreeBSD.org> | 2015-01-25 14:25:44 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-01-25 14:25:44 +0000 |
commit | a833c07b8b656a1a2147493d437b49b83c32fd42 (patch) | |
tree | 46a5d113e91fb7c191eedd4817ec3dc421cce1b6 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c | |
parent | 53cbeb6d4994968a3e406c2b08de834744559630 (diff) | |
download | FreeBSD-src-a833c07b8b656a1a2147493d437b49b83c32fd42.zip FreeBSD-src-a833c07b8b656a1a2147493d437b49b83c32fd42.tar.gz |
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.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c index 25289ef..fe12bd9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c @@ -1819,7 +1819,7 @@ zvol_read(struct cdev *dev, struct uio *uio, int ioflag) 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) |