]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfsctl_snapdir_lookup should be able to handle an uncovered vnode
authorAndriy Gapon <avg@FreeBSD.org>
Tue, 12 Sep 2017 06:06:58 +0000 (06:06 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Tue, 12 Sep 2017 06:06:58 +0000 (06:06 +0000)
commitbcab65cab5e5b8fa6eb65f8d6c46a31c14e02cbb
treed5058600e108ddc2c75fcc72d651f195d67f4f12
parentc09d0da8d1941303a8604bfce7300964c4b4feeb
zfsctl_snapdir_lookup should be able to handle an uncovered vnode

The uncovered vnode is possible because there is no guarantee that
its hold count would go to zero (and it would be inactivated and reclaimed)
immediately after a covering filesystem is unmounted.
So, such a vnode should be expected and it is possible to re-use it
without any trouble.

MFC after: 3 weeks
Sponsored by: Panzura
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c