NFS: Don't interrupt file writeout due to fatal errors
authorTrond Myklebust <trondmy@gmail.com>
Sun, 7 Apr 2019 17:59:02 +0000 (13:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:41 +0000 (14:50 +0100)
commit89047634f5ce0289ca96b9e021bd9694cf82e956
tree661981b04b5e8a00c4edbdf5f8747782e34c2966
parente1f7bfbe9d18a4d640c5ebea91cab7fe83465e99
NFS: Don't interrupt file writeout due to fatal errors

[ Upstream commit 14bebe3c90b326d2a0df78aed5e9de090c71d878 ]

When flushing out dirty pages, the fact that we may hit fatal errors
is not a reason to stop writeback. Those errors are reported through
fsync(), not through the flush mechanism.

Fixes: a6598813a4c5b ("NFS: Don't write back further requests if there...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/write.c