diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index 12c98b440f..db9769b05d 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -3136,9 +3136,10 @@ dbuf_issue_final_prefetch_done(zio_t *zio, const zbookmark_phys_t *zb, (void) zio, (void) zb, (void) iobp; dbuf_prefetch_arg_t *dpa = private; - dbuf_prefetch_fini(dpa, B_TRUE); if (abuf != NULL) arc_buf_destroy(abuf, private); + + dbuf_prefetch_fini(dpa, B_TRUE); } /*