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:
parent
53cbeb6d49
commit
a833c07b8b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user