提交 a1428a5f 编写于 作者: T Trond Myklebust 提交者: Zheng Zengkai

NFS: Do not report EINTR/ERESTARTSYS as mapping errors

stable inclusion
from stable-v5.10.121
commit 418b9fa4349a0479e6c3a9407a3ca208abd87bec
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=418b9fa4349a0479e6c3a9407a3ca208abd87bec

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

[ Upstream commit cea9ba72 ]

If the attempt to flush data was interrupted due to a local signal, then
just requeue the writes back for I/O.

Fixes: 6fbda89b ("NFS: Replace custom error reporting mechanism with generic one")
Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 cc8422e2
...@@ -1408,7 +1408,7 @@ static void nfs_async_write_error(struct list_head *head, int error) ...@@ -1408,7 +1408,7 @@ static void nfs_async_write_error(struct list_head *head, int error)
while (!list_empty(head)) { while (!list_empty(head)) {
req = nfs_list_entry(head->next); req = nfs_list_entry(head->next);
nfs_list_remove_request(req); nfs_list_remove_request(req);
if (nfs_error_is_fatal(error)) if (nfs_error_is_fatal_on_server(error))
nfs_write_error(req, error); nfs_write_error(req, error);
else else
nfs_redirty_request(req); nfs_redirty_request(req);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册