]> git.proxmox.com Git - mirror_zfs.git/commit
Do not hash unlinked inodes
authorPaul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>
Sat, 12 Jun 2021 00:00:33 +0000 (20:00 -0400)
committerGitHub <noreply@github.com>
Sat, 12 Jun 2021 00:00:33 +0000 (17:00 -0700)
commitafa7b3484556d3ae610a34582ce5ebd2c3e27bba
tree035309b7240f8fd0e51eb965a4092af592f158c2
parent10bcc4da6ceced9746fe498f12d0603951258367
Do not hash unlinked inodes

In zfs_znode_alloc we always hash inodes.  If the
znode is unlinked, we do not need to hash it.  This
fixes the problem where zfs_suspend_fs is doing zrele
(iput) in an async fashion, and zfs_resume_fs unlinked
drain processing will try to hash an inode that could
still be hashed, resulting in a panic.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alan Somers <asomers@gmail.com>
Signed-off-by: Paul Zuchowski <pzuchowski@datto.com>
Closes #9741
Closes #11223
Closes #11648
Closes #12210
module/os/linux/zfs/zfs_znode.c