]> git.proxmox.com Git - mirror_zfs.git/commit
BRT: Relax brt_pending_apply() locking
authorAlexander Motin <mav@FreeBSD.org>
Mon, 25 Mar 2024 21:59:55 +0000 (17:59 -0400)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2024 21:59:55 +0000 (14:59 -0700)
commit4616b96a643c941e96ee0d1d816c573df9f0de28
tree0d2a815331fb50dca293288ab2ed3ee0409a1908
parent80cc516295fef1a429542fcfeea369c6bbb85ce4
BRT: Relax brt_pending_apply() locking

Since brt_pending_apply() is running in syncing context, no other
brt_pending_tree accesses are possible for the TXG.  We don't need
to acquire brt_pending_lock here.

Reviewed-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15955
module/zfs/brt.c