]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add some assertions for the code handling vm_object for tmpfs vnode.
authorkib <kib@FreeBSD.org>
Mon, 14 Jul 2014 08:55:02 +0000 (08:55 +0000)
committerkib <kib@FreeBSD.org>
Mon, 14 Jul 2014 08:55:02 +0000 (08:55 +0000)
commit7dd9ab980a47b3ba8e37c7e7458baa629759e34b
treef4118f95112031759cad24c4390fcef5fbf46b74
parent8542c8b735cda87e94daa65cef2491ac0e1bfb92
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