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)
Wed, Nov 5, 3:16 AM
Unknown Object (File)
Tue, Nov 4, 10:53 PM
Unknown Object (File)
Sun, Oct 19, 11:00 AM
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
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