]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r276192, r276200
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 31 Dec 2014 01:29:44 +0000 (01:29 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 31 Dec 2014 01:29:44 +0000 (01:29 +0000)
commit9a372c7dacf750cd5f9cce485be125ad20966088
treeb2f385b324eecb67f29d38ae77a29ed8bdf22ef3
parentc8847ea73475f21b5361fa0404ff65055d391f70
MFC: r276192, r276200
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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@276440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/vfs_default.c