HomeFreeBSD

Modify vop_stdadvlock{async}() so that it only

Description

Modify vop_stdadvlock{async}() so that it only
locks/unlocks the vnode and does a VOP_GETATTR()
for the SEEK_END case. This is safe to do, since
lf_advlock{async}() only uses the size argument
for the SEEK_END case.
The NFSv4 server needs this when
vfs.nfsd.enable_locallocks!=0 since locking the
vnode results in a LOR that can cause a deadlock
for the nfsd threads.

Reviewed by: kib
MFC after: 1 week

Details

Provenance
rmacklemAuthored on
Parents
rS276191: Display the correct value for cache Level of Coherency. Like the other
Branches
Unknown
Tags
Unknown

Event Timeline