HomeFreeBSD

dmu_zfetch: fix memory leak

Description

dmu_zfetch: fix memory leak

The last change caused the read completion callback to not be called
if the IO was still in progress. This change restores allocation
of the arc buf callback, but in the callback path checks the new
acb_nobuf field to know to skip buffer allocation.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #11324

Details

Provenance
mmacyAuthored on Dec 13 2020, 12:00 AM
GitHub <noreply@github.com>Committed on Dec 13 2020, 12:00 AM
Parents
rGc76a40bfdaed: Fix reporting of CKSUM errors in indirect vdevs
Branches
Unknown
Tags
Unknown

Event Timeline