]> git.proxmox.com Git - mirror_zfs.git/commit
BRT: Limit brt_vdev_dump() to only one vdev
authorAlexander Motin <mav@FreeBSD.org>
Wed, 6 Dec 2023 23:37:27 +0000 (18:37 -0500)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 23:37:27 +0000 (15:37 -0800)
commit9743d09635c7ab7957e00161cc8d4e8697ffa191
treef3d133254bcea8dfb2a131e9e78cfc206552fcc4
parent2aa3a482abe31bf41d97bd028507b69029515698
BRT: Limit brt_vdev_dump() to only one vdev

Without this patch on pool of 60 vdevs with ZFS_DEBUG enabled clone
takes much more time than copy, while heavily trashing dbgmsg for
no good reason, repeatedly dumping all vdevs BRTs again and again,
even unmodified ones.

I am generally not sure this dumping is not excessive, but decided
to keep it for now, just restricting its scope to more reasonable.

Reviewed-by: Kay Pedersen <mail@mkwg.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15625
module/zfs/brt.c