Upstream: dmu_zfetch_stream_fini leaks refcount
authorJorgen Lundman <lundman@lundman.net>
Thu, 1 Jul 2021 15:22:16 +0000 (00:22 +0900)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 15:22:16 +0000 (09:22 -0600)
commiteca174527e0b8416550e6ce87c405702fd379ada
tree348bb282dac6477661c3981c74951d93841376af
parent50e09eddd0c556ace90357b081d23df3f00c2d83
Upstream: dmu_zfetch_stream_fini leaks refcount

dmu_zfetch_stream_fini() is missing calls to destroy the refcounts,
leaking them and the mutex inside.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #12294
module/zfs/dmu_zfetch.c