freebsd-dev/sys/cddl/contrib/opensolaris
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
..
common zfs: do not advertise edonr which is not yet supported 2017-08-29 22:24:22 +00:00
uts zfs_get_vfs: reference a requested filesystem instead of vfs_busy-ing it 2017-09-12 06:04:01 +00:00
OPENSOLARIS.LICENSE