]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r259084
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Jan 2014 22:14:49 +0000 (22:14 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Jan 2014 22:14:49 +0000 (22:14 +0000)
commit94ebd44304071c799d2d6892c026c7a361ffdc4e
tree3675d9c55b399075b992c75826f020c618a1e9c7
parent964fbba5d0dbcf577b4f65acdf698bf63748cd16
MFC: r259084
For software builds, the NFS client does many small
synchronous (with FILE_SYNC) writes because non-contiguous
byte ranges in the same buffer cache block are being
written. This patch adds a new mount option "noncontigwr"
which allows the non-contiguous byte ranges to be combined,
with the dirty byte range becoming the superset of the bytes
that are dirty, if the file has not been file locked.
This reduces the number of writes significantly for software
builds. The only case where this change might break existing
applications is where an application is writing
non-overlapping byte ranges within the same buffer cache block
of a file from multiple clients concurrently.
Since such an application would normally do file locking on
the file, avoiding the byte range merge for files that have
been file locked should be sufficient for most (maybe all?) cases.

git-svn-id: svn://svn.freebsd.org/base/stable/9@260170 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsclient/nfs_clbio.c
sys/fs/nfsclient/nfs_clvfsops.c
sys/fs/nfsclient/nfs_clvnops.c
sys/fs/nfsclient/nfsnode.h
sys/nfsclient/nfsargs.h