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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 25 Apr 2019 18:18:14 +0000 (14:18 -0400)
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>
fs/nfs/write.c

index f3ebabaa291dccbf7fda8802bcee89c7fd3600da..9198a23bb58b1c514a61785830486fb646e33d0b 100644 (file)
@@ -647,7 +647,7 @@ out:
        return ret;
 out_launder:
        nfs_write_error_remove_page(req);
-       return ret;
+       return 0;
 }
 
 static int nfs_do_writepage(struct page *page, struct writeback_control *wbc,