vfs: allow v_holdcnt to transition 0->1 without the interlock
authormjg <mjg@FreeBSD.org>
Sun, 19 Jan 2020 17:47:04 +0000 (17:47 +0000)
committermjg <mjg@FreeBSD.org>
Sun, 19 Jan 2020 17:47:04 +0000 (17:47 +0000)
commit44fb75786324f762ac29483567a094299145d87e
tree523f73817194a77dbfa307464ab538c1c2ddf1c9
parent1ba7593a6944187716a651d34f12f282d7b1819c
vfs: allow v_holdcnt to transition 0->1 without the interlock

Since r356672 ("vfs: rework vnode list management") there is nothing to do
apart from altering freevnodes count, but this much can be safely done based
on the result of atomic_fetchadd.

Reviewed by: kib
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D23186
sys/kern/vfs_subr.c