]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix reference count leak for a case where snapshot's mount point is updated.
authorPawel Jakub Dawidek <pjd@FreeBSD.org>
Tue, 8 Sep 2009 08:54:15 +0000 (08:54 +0000)
committerPawel Jakub Dawidek <pjd@FreeBSD.org>
Tue, 8 Sep 2009 08:54:15 +0000 (08:54 +0000)
commit1ea356629466af5a54d585f499176396ef9b3c4a
treeb93754526db2b76d7414290904ab89e41ab2d062
parent18e42503ed3c8490164158171cd865e274c1c2b4
Fix reference count leak for a case where snapshot's mount point is updated.
Such situation is not supported.

This problem was triggered by something like this:

# zpool create tank da0
# zfs snapshot tank@snap
# cd /tank/.zfs/snapshot/snap  (this will mount the snapshot)
# cd
# mount -u nosuid /tank/.zfs/snapshot/snap  (refcount leak)
# zpool export tank
cannot export 'tank': pool is busy

MFC after: 1 week
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c