]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't check lock owner compatibility in writes unless file is locked
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 5 Sep 2013 19:52:51 +0000 (15:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 5 Sep 2013 22:11:42 +0000 (18:11 -0400)
commite9dc62c379b2407258dd36aad239c3b9c2c752d8
tree998b5e200cd6a519a39b80c43516895a2cc91519
parent6f868ef03d3d98a205f055dea0b1aa6d80cbe753
NFS: Don't check lock owner compatibility in writes unless file is locked

If we're doing buffered writes, and there is no file locking involved,
then we don't have to worry about whether or not the lock owner information
is identical.
By relaxing this check, we ensure that fork()ed child processes can write
to a page without having to first sync dirty data that was written
by the parent to disk.

Reported-by: Quentin Barnes <qbarnes@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Quentin Barnes <qbarnes@gmail.com>
fs/nfs/write.c