]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r276192, r276200
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 31 Dec 2014 00:34:37 +0000 (00:34 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 31 Dec 2014 00:34:37 +0000 (00:34 +0000)
commite5fe9bf2802efd4e0aaa88cb1a4e0ac7bc338eea
tree01e1a09b438ec6835e22d1820f7a086d7fad4ee6
parent1f00fcb74ab7d2a9890a04ef682e8e35c06f9f97
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/10@276436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/vfs_default.c