]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add some assertions for the code handling vm_object for tmpfs vnode.
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 14 Jul 2014 08:55:02 +0000 (08:55 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 14 Jul 2014 08:55:02 +0000 (08:55 +0000)
commit55781cb922c9f8e8100b09919abb38c5aec358b8
treef4118f95112031759cad24c4390fcef5fbf46b74
parent706f80801d4debfdb75220308d03812afeb890ea
Add some assertions for the code handling vm_object for tmpfs vnode.
In particular, vnode must be exclusively locked when the tmpfs vnode
and object are divorced.  When the vnode is opened, the object must be
still alive, since only live vnode can be opened, and the tmpfs node
owns a reference on the object.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
sys/fs/tmpfs/tmpfs_subr.c
sys/fs/tmpfs/tmpfs_vnops.c