diff mbox series

[v2,19/28] NFS: Don't interrupt file writeout due to fatal errors

Message ID 20190329215948.107328-20-trond.myklebust@hammerspace.com
State New
Headers show
Series Fix up soft mounts for NFSv4.x | expand

Commit Message

Trond Myklebust March 29, 2019, 9: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,