]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix a write performance regression
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Oct 2015 22:38:27 +0000 (18:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:24 +0000 (14:49 -0700)
commitc67cd73a47442affcc9ad6c0efd43196bb64ee3b
tree1c54a73fc6e00fa622f6b5fa104c6ceaac88cc66
parent0561ad19a608ac982f1b373ffc9f56a92a875f1b
NFS: Fix a write performance regression

commit 8fa4592a14ebb3c22a21d846d1e4f65dab7d1a7c upstream.

If all other conditions in nfs_can_extend_write() are met, and there
are no locks, then we should be able to assume close-to-open semantics
and the ability to extend our write to cover the whole page.

With this patch, the xfstests generic/074 test completes in 242s instead
of >1400s on my test rig.

Fixes: bd61e0a9c852 ("locks: convert posix locks to file_lock_context")
Cc: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/write.c