summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-03-09 10:09:51 +0000
committerkib <kib@FreeBSD.org>2016-03-09 10:09:51 +0000
commit292b9f2cb8bc8b91f645a7ee48b68936c1a60f5d (patch)
tree855c96167432f3dd408a1f6c97a3c1e404d1c78f /share
parent1febe34ecc1d0cb1a72a6dda1f699f469d7b2c69 (diff)
downloadFreeBSD-src-292b9f2cb8bc8b91f645a7ee48b68936c1a60f5d.zip
FreeBSD-src-292b9f2cb8bc8b91f645a7ee48b68936c1a60f5d.tar.gz
MFC r295998:
Remove references to Giant in the description of vrele(9). Add notes about vnode lock and sleeping. MFC r296001: Fix year.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/vrele.910
1 files changed, 6 insertions, 4 deletions
diff --git a/share/man/man9/vrele.9 b/share/man/man9/vrele.9
index d29ca5b..1eae442 100644
--- a/share/man/man9/vrele.9
+++ b/share/man/man9/vrele.9
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 20, 2010
+.Dd February 24, 2016
.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
OpenPOWER on IntegriCloud