]> git.baikalelectronics.ru Git - 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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 20:20:00 +0000 (16:20 -0400)
commit5e5f88f8d445ae63961b4ef13c5220cf9d2ee96b
tree3761020205f74585181b9a6aab50807420c8e817
parentf863efaf5b2ea154e09ee069bbd991e8bf62b494
SUNRPC: Handle low memory situations in call_status()

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: d8a6a04ce2de ("SUNRPC: xs_tcp_connect_worker{4,6}: merge common code")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c