Chuck Silvers a0a36d4886 vfs: avoid exposing partially constructed vnodes
If multiple threads race calling vfs_hash_insert() while creating vnodes
with the same identity, all of the vnodes which lose the race must be
destroyed before any other thread can see them. Previously this was
accomplished by the vput() in vfs_hash_insert() resulting in the vnode's
VOP_INACTIVE() method calling vgone() before the vnode lock was unlocked,
but at some point changes to the the vnode refcount/inactive logic have caused
that to no longer work, leading to crashes, so instead vfs_hash_insert()
must call vgone() itself before calling vput() on vnodes which lose the race.

Reviewed by:	mjg, kib
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D26291
2020-09-05 00:26:03 +00:00
..
2020-04-24 01:27:25 +00:00
2020-09-04 22:25:14 +00:00
2020-09-04 22:25:14 +00:00
2020-08-26 02:37:42 +00:00
2020-09-04 18:29:59 +00:00
2020-06-04 17:20:58 +00:00
2020-08-31 16:17:28 +00:00
2020-09-03 22:40:51 +00:00
2020-09-02 19:21:37 +00:00