]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
SUNRPC: Handle low memory situations in call_status()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 13:50:19 +0000 (09:50 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:41 +0000 (11:59 +0200)
commite8ba89742c81eb4d27682635db3f9c7375373230
tree186770cb1606e7262d99cbadc1e0e7d9c8cff626
parent5ec31d3015f15a66e711b5de25773ec429deeed0
SUNRPC: Handle low memory situations in call_status()

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 9d82819d5b065348ce623f196bf601028e22ed00 ]

We need to handle ENFILE, ENOBUFS, and ENOMEM, because
xprt_wake_pending_tasks() can be called with any one of these due to
socket creation failures.

Fixes: b61d59fffd3e ("SUNRPC: xs_tcp_connect_worker{4,6}: merge common code")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 3b32dda29f994f036de528c07221fa72ba721f1c)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/sunrpc/clnt.c