]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix spurious EIO read errors
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 15 Aug 2019 16:26:05 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:35 +0000 (07:18 +0200)
commit78f0f9007523f2e0bbe840f75ef77ec60e153b2d
treeb293e095f7cd66def005f92249301bb5daeb615c
parentfa38f165c78a0b73627e0f2fa6e89a3df14e284c
NFS: Fix spurious EIO read errors

[ Upstream commit 8f54c7a4babf58bbaf849e126f7ae9664bdc9e04 ]

If the client attempts to read a page, but the read fails due to some
spurious error (e.g. an ACCESS error or a timeout, ...) then we need
to allow other processes to retry.
Also try to report errors correctly when doing a synchronous readpage.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/internal.h
fs/nfs/read.c
fs/nfs/write.c