freebsd-dev/sys/cddl/contrib/opensolaris/uts
Andriy Gapon d092f79489 zfs_get_vfs: reference a requested filesystem instead of vfs_busy-ing it
The only consumer of zfs_get_vfs, zfs_unmount_snap, does not need
the filesystem to be busy, it just need a reference that it can pass
to dounmount.

Also, previously the code was racy as it unbusied the filesystem
before taking a reference on it.

Now the code should be simpler and safer.

MFC after:	2 weeks
Sponsored by:	Panzura
2017-09-12 06:04:01 +00:00
..
aarch64
arm
common zfs_get_vfs: reference a requested filesystem instead of vfs_busy-ing it 2017-09-12 06:04:01 +00:00
intel
mips
powerpc
riscv