Exit the teardown section later in rename on FreeBSD
commit4d1a3ba6eda1edf46e973c22d29f7abcaa751292
authorMark Johnston <markj@FreeBSD.org>
Thu, 28 Oct 2021 17:25:26 +0000 (28 13:25 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Oct 2021 23:40:25 +0000 (29 16:40 -0700)
treeb06450b7442f44cefc0e3e56d5879fea5133534b
parent68a7a9edc502eda8af057e199e2a3b5c5844b5c7
Exit the teardown section later in rename on FreeBSD

We have to hold the teardown lock while dereferencing zfsvfs->z_os and,
I believe, when committing to the ZIL.

Note that jumping to the "out" label, "error" is always non-zero.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #12704
module/os/freebsd/zfs/zfs_vnops_os.c