-
由 Trond Myklebust 提交于
stable inclusion from stable-v5.10.121 commit 96fdbb1c8563ab4382937e1142dda5114360e286 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=96fdbb1c8563ab4382937e1142dda5114360e286 -------------------------------- [ Upstream commit 3764a17e ] Commit 587f03de caused pnfs_update_layout() to stop returning ENOMEM when the memory allocation fails, and hence causes it to fall back to trying to do I/O through the MDS. There is no guarantee that this will fare any better. If we're failing the pNFS layout allocation, then we should just redirty the page and retry later. Reported-by: NOlga Kornievskaia <aglo@umich.edu> Fixes: 587f03de ("pnfs: refactor send_layoutget") 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>
c7750c5e