lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 327/639] NFS: Dont interrupt file writeout due to fatal errors
    Date
    From: Trond Myklebust <trondmy@gmail.com>

    [ 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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/fs/nfs/write.c b/fs/nfs/write.c
    index 117ffd90419e2..e27637fa0f790 100644
    --- a/fs/nfs/write.c
    +++ b/fs/nfs/write.c
    @@ -646,7 +646,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,
    --
    2.20.1


    \
     
     \ /
      Last update: 2020-01-24 12:19    [W:4.312 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site