aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2016-02-05 23:10:13 -0500
committerBrian Behlendorf <[email protected]>2016-02-18 10:24:33 -0800
commit19a47cb1c2be6da9b9d4a395a7afc07da4813a5f (patch)
tree2d293ad2bf83e67f2a3f981ae1be5fc036c2c1e2 /contrib
parenta765a34a3142a1dcedd256e076a54e6ae61953ca (diff)
Call dmu_read_uio_dbuf() in zvol_read()
The difference between `dmu_read_uio()` and `dmu_read_uio_dbuf()` is that the former takes a hold while the latter uses an existing hold. `zfs_read()` in the ZPL will use `dmu_read_uio_dbuf()` while our analogous `zvol_write()` will use `dmu_write_uio_dbuf()`, but for no apparent reason, we inherited a `zvol_read()` function from OpenSolaris that does `dmu_read_uio()`. illumos-gate also still uses `dmu_read_uio()` to this day. Lets switch to `dmu_read_uio_dbuf()`, which is more performant. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Tim Chase <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #4316
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions