]> git.proxmox.com Git - mirror_zfs.git/commit
Don't call zrele on passed zp in zfs_xattr_owner_unlinked on FreeBSD
authorMatthew Macy <mmacy@freebsd.org>
Fri, 28 Feb 2020 22:53:18 +0000 (14:53 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2020 22:53:18 +0000 (14:53 -0800)
commitcf118ae8dc149c5c9fd9b70e89790c38824b85de
tree9e3b2b13d18d45f827a7de17e28619a02ee6f0db
parentae9f92f6f31c81f4d1aa4602f812f912b4392e7c
Don't call zrele on passed zp in zfs_xattr_owner_unlinked on FreeBSD

FreeBSD has a somewhat more cumbersome locking and refcounting
protocol for the platform counterpart to znode. We need to not call
zrele on the passed zp, but do need to do so on any intermediate zp.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10075
module/zfs/zfs_log.c