Page MenuHomeFreeBSD

D60983.1795615185.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D60983.1795615185.diff

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

Mime Type
text/plain
Expires
Wed, Nov 25, 1:59 PM (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41365954
Default Alt Text
D60983.1795615185.diff (1 KB)

Event Timeline