提交 812ffba3 编写于 作者: T Trond Myklebust 提交者: Xie XiuQi

NFS: Don't interrupt file writeout due to fatal errors

mainline inclusion
from mainline-v5.2-rc1
commit 14bebe3c
category: bugfix
bugzilla: 15379
CVE: NA

-------------------------------------------------

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: a6598813 ("NFS: Don't write back further requests if there...")
Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: NZhangXiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Nyangerkun <yangerkun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 12fe366c
......@@ -646,7 +646,7 @@ static int nfs_page_async_flush(struct nfs_pageio_descriptor *pgio,
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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册