Page MenuHomeFreeBSD

nfs client: switch nfs_advlock() to use exclusive vnode lock
ClosedPublic

Authored by kib on Aug 27 2025, 9:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 3:59 PM
Unknown Object (File)
Fri, Oct 10, 3:59 PM
Unknown Object (File)
Fri, Oct 10, 3:59 PM
Unknown Object (File)
Fri, Oct 10, 9:57 AM
Unknown Object (File)
Thu, Oct 9, 5:06 PM
Unknown Object (File)
Fri, Oct 3, 5:00 PM
Unknown Object (File)
Fri, Oct 3, 12:23 PM
Unknown Object (File)
Thu, Oct 2, 3:28 PM
Subscribers

Details

Summary
It eliminates the need to upgrade the lock in the function.
More importantly, the calls to nfs_advlock_p()/nlm_advlock() sometimes
flush buffers, which requires exclusive locking.

Reported by:    bz

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable