NFS: fsync() should report filesystem errors over EINTR/ERESTARTSYS
stable inclusion from stable-v5.10.121 commit c5a0e59bbe0546b2b28ade53c47bf2efb643fb33 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=c5a0e59bbe0546b2b28ade53c47bf2efb643fb33 -------------------------------- [ Upstream commit 9641d9bc ] If the commit to disk is interrupted, we should still first check for filesystem errors so that we can report them in preference to the error due to the signal. Fixes: 2197e9b0 ("NFS: Fix up fsync() when the server rebooted") 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>
Showing
想要评论请 注册 或 登录