]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix issue with EIO on NFS read
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Aug 2006 17:44:32 +0000 (13:44 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 24 Aug 2006 19:51:08 +0000 (15:51 -0400)
commit78c138a247b7fdc6141d0b4ec8dfdc0e150724fb
tree125f16640cd7f9de2074dae89a9c6c405703029c
parenta8ddc39ca8d560e7114a573d60cda1c6435df920
NFS: Fix issue with EIO on NFS read

The problem is that we may be caching writes that would extend the file and
create a hole in the region that we are reading. In this case, we need to
detect the eof from the server, ensure that we zero out the pages that
are part of the hole and mark them as up to date.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from 856b603b01b99146918c093969b6cb1b1b0f1c01 commit)
fs/nfs/read.c