Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177943086
D60983.1795612048.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D60983.1795612048.diff
View Options
diff --git a/share/man/man9/vn_fullpath.9 b/share/man/man9/vn_fullpath.9
--- a/share/man/man9/vn_fullpath.9
+++ b/share/man/man9/vn_fullpath.9
@@ -32,7 +32,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
.\" DAMAGE.
.\"
-.Dd September 29, 2025
+.Dd October 30, 2026
.Dt VN_FULLPATH 9
.Os
.Sh NAME
@@ -112,11 +112,21 @@
Code consuming the results of this function should anticipate (and
properly handle) failure.
.Pp
+The caller must hold no vnode locks at all.
+When a pathname cannot be reconstructed from the name cache, these
+functions walk from the vnode towards the root, locking one vnode at a
+time in the opposite order to a forward pathname lookup.
+A caller holding any vnode lock can therefore deadlock: it stalls on a
+parent while a concurrent lookup, holding that parent, waits for the
+child it already holds.
+A name cache hit on one call does not guarantee that the next call
+avoids that walk, so these are not cache-only interfaces.
+.Pp
These functions take the following arguments:
.Bl -tag -width ".Fa freebuf"
.It Fa vp
The vnode to search for.
-No need to be locked by the caller.
+It must not be locked by the caller; see the locking note above.
.It Fa retbuf
Pointer to a
.Vt "char *"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 1:07 PM (13 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41365954
Default Alt Text
D60983.1795612048.diff (1 KB)
Attached To
Mode
D60983: vn_fullpath.9: document the name cache fallback's locking
Attached
Detach File
Event Timeline