[v3,19/29] NFS: Don't interrupt file writeout due to fatal errors
diff mbox series

Message ID 20190407175912.23528-20-trond.myklebust@hammerspace.com
State New
Headers show
  • Fix up soft mounts for NFSv4.x
Related show

Commit Message

Trond Myklebust April 7, 2019, 5:59 p.m. UTC
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>
 fs/nfs/write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index f3ebabaa291d..9198a23bb58b 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -647,7 +647,7 @@  static int nfs_page_async_flush(struct nfs_pageio_descriptor *pgio,
 	return ret;
-	return ret;
+	return 0;
 static int nfs_do_writepage(struct page *page, struct writeback_control *wbc,