aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zfs/zfs_main.c
diff options
context:
space:
mode:
authorTom Caputi <[email protected]>2019-01-15 15:23:40 -0500
committerBrian Behlendorf <[email protected]>2019-01-15 12:23:40 -0800
commit5e7f3ace5807f950f3529361e03970101e61aa44 (patch)
treeca4082ed13bc96da3b8bf1350dd1c0d74c05956d /cmd/zfs/zfs_main.c
parent7b02fae7a6670579437d1fb490362f70168b0666 (diff)
Fix zio leak in dbuf_read()
Currently, dbuf_read() may decide to create a zio_root which is used as a parent for any child zios created in dbuf_read_impl(). However, if there is an error in dbuf_read_impl(), this zio is never executed and ends up leaked. This patch simply ensures that we always execute the root zio, even i it has no real work to do. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tom Caputi <[email protected]> Closes #8267
Diffstat (limited to 'cmd/zfs/zfs_main.c')
0 files changed, 0 insertions, 0 deletions