1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-23 16:01:42 +00:00

Remove references to Giant in the description of vrele(9). Add notes

about vnode lock and sleeping.

Reported by:	julian
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2016-02-24 20:04:41 +00:00
parent cba0af0aeb
commit 4b515c03a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295998

View File

@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd November 20, 2010
.Dd February 24, 2015
.Dt VRELE 9
.Os
.Sh NAME
@ -81,9 +81,11 @@ If the
.Va v_usecount
field of the non-doomed vnode reaches zero, then it will be inactivated
and placed on the free list.
Since the functions might need to call VOPs for the vnode, the
.Va Giant
mutex should be conditionally locked around the call.
.Pp
The
.Fn vrele
function may lock the vnode.
All three functions may sleep.
.Pp
The hold count for the vnode is always greater or equal to the usecount.
Non-forced unmount fails when mount point owns a vnode that has non-zero