HomeFreeBSD

BRT: Skip duplicate BRT prefetches

Description

BRT: Skip duplicate BRT prefetches

If there is a pending entry for this block, then we've already
issued BRT prefetch for it within this TXG, so don't do it again.
BRT vdev lookup and following zap_prefetch_uint64() call can be
pretty expensive and should be avoided when not necessary.

Reviewed-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15941

Details

Provenance
mavAuthored on Mar 25 2024, 9:58 PM
GitHub <noreply@github.com>Committed on Mar 25 2024, 9:58 PM
Parents
rG102b468b5e19: Fix corruption caused by mmap flushing problems
Branches
Unknown
Tags
Unknown