]> git.proxmox.com Git - mirror_zfs.git/commit
BRT: Skip duplicate BRT prefetches
authorAlexander Motin <mav@FreeBSD.org>
Mon, 25 Mar 2024 21:58:04 +0000 (17:58 -0400)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2024 21:58:04 +0000 (14:58 -0700)
commitbf8f72359d1bf0cdb6a4b31ccfc7bbef0f948ca4
tree6f651fc9b58c28d18f2e1bb4a424c95295ecbcb2
parent102b468b5e190973fbaee6fe682727eb33079811
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
module/zfs/brt.c