Konstantin Belousov 481208a815 If a race is detected, pfs_vncache_alloc() may reclaim a vnode that had
never been inserted into the pfs_vncache list. Since pfs_vncache_free()
does not anticipate this case, it decrements pfs_vncache_entries
unconditionally; if the vnode was not in the list, pfs_vncache_entries
will no longer reflect the actual number of list entries. This may cause
size of the cache to exceed the configured maximum. It may also trigger
a panic during module unload or system shutdown.

Do not decrement pfs_vncache_entries for the vnode that was not in the
list.

Submitted by:	tegge
Reviewed by:	des
MFC after:	1 week
2009-09-07 12:10:41 +00:00
..
2009-09-06 19:06:50 +00:00
2009-09-06 19:33:13 +00:00
2009-06-25 16:48:13 +00:00
2009-09-04 14:53:12 +00:00
2009-09-06 07:29:22 +00:00
2009-09-06 10:27:45 +00:00