mirror_zfs/module
Pavel Snajdr c22f5c1c55 Linux: Fix zfs_prune panics v2 (#17121)
It turns out that approach taken in the original version of the patch
was wrong. So now, we're taking approach in-line with how kernel
actually does it - when sb is being torn down, access to it
is serialized via sb->s_umount rwsem, only when that lock is taken
is it okay to work with s_flags - and the other mistake I was doing
was trying to make SB_ACTIVE work, but apparently the kernel checks
the negative variant - not SB_DYING and not SB_BORN.

Kernels pre-6.6 don't have SB_DYING, but check if sb is hashed
instead.

Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
2025-04-16 09:59:45 -07:00
..
avl SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
icp SPDX: license tags: LicenseRef-OpenZFS-ThirdParty-PublicDomain 2025-04-16 09:59:45 -07:00
lua SPDX: license tags: MIT 2025-04-16 09:59:44 -07:00
nvpair SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
os Linux: Fix zfs_prune panics v2 (#17121) 2025-04-16 09:59:45 -07:00
unicode SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zcommon SPDX: license tags: BSD-2-Clause OR GPL-2.0-only 2025-04-16 09:59:44 -07:00
zfs Fix deadlock on I/O errors during device removal 2025-04-16 09:59:45 -07:00
zstd SPDX: license tags: BSD-3-Clause OR GPL-2.0-only 2025-04-16 09:59:44 -07:00
.gitignore FreeBSD: Ignore symlink to i386 includes 2022-08-02 16:34:23 -07:00
Kbuild.in vdev_file: unify FreeBSD and Linux implementations (#17046) 2025-02-28 00:42:29 +05:00
Makefile.bsd vdev_file: unify FreeBSD and Linux implementations (#17046) 2025-02-28 00:42:29 +05:00
Makefile.in Fix "make install" with DESTDIR set (#16995) 2025-02-28 00:42:29 +05:00