]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 2 Oct 2015 19:43:07 +0000 (15:43 -0400)
commit1c98fc773a01139b8822bdf7b5391dd3164e9d91
treefacde536b292461c6db11d6c672cc4e592d02f58
parentace57257e9d8b3f36c8a22c828bb7bc2ebec87cd
NFS: Fix a write performance regression

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: 5af587535431 ("locks: convert posix locks to file_lock_context")
Cc: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c