Konstantin Belousov 6272798a3f Both vn_close() and VFS_PROLOGUE() evaluate vp->v_mount twice, without
holding the vnode lock; vp->v_mount is checked first for NULL
equiality, and then dereferenced if not NULL.  If vnode is reclaimed
meantime, second dereference would still give NULL.  Change
VFS_PROLOGUE() to evaluate the mp once, convert MNTK_SHARED_WRITES and
MNTK_EXTENDED_SHARED tests into inline functions.

Reviewed by:	alc
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2013-11-09 20:30:13 +00:00
..
2013-11-08 16:56:13 +00:00
2013-11-05 19:17:19 +00:00
2013-11-09 18:46:11 +00:00
2013-09-29 15:19:34 +00:00
2013-08-22 16:39:59 +00:00
2013-10-24 00:33:29 +00:00