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.
This commit is contained in:
mav 2015-01-25 14:25:44 +00:00
parent 53cbeb6d49
commit a833c07b8b

View File

@ -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)