]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r230605
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2012 04:01:17 +0000 (04:01 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2012 04:01:17 +0000 (04:01 +0000)
commitf8e1c1c7e13ddced092b57c7161ba1d6a048b8ec
treecfedb654476590c7b7137abfe7c322ab982aa997
parent2507d3d19c87b03e94ee8ac991b0d177149472d4
MFC: r230605
A problem with respect to data read through the buffer cache for both
NFS clients was reported to freebsd-fs@ under the subject "NFS
corruption in recent HEAD" on Nov. 26, 2011. This problem occurred when
a TCP mounted root fs was changed to using UDP. I believe that this
problem was caused by the change in mnt_stat.f_iosize that occurred
because rsize was decreased to the maximum supported by UDP. This
patch fixes the problem by using v_bufobj.bo_bsize instead of f_iosize,
since the latter is set to f_iosize when the vnode is allocated, but
does not change for a given vnode when f_iosize changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@231332 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsclient/nfs_clbio.c
sys/fs/nfsclient/nfs_clnode.c
sys/fs/nfsclient/nfs_clport.c
sys/nfsclient/nfs_bio.c