]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Memory allocation should be allowed to fail during connect
authorChuck Lever <chuck.lever@oracle.com>
Fri, 23 Sep 2022 13:06:30 +0000 (09:06 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 5 Oct 2022 19:47:16 +0000 (15:47 -0400)
commit29b17348b1793174aa8933a26b1c78c2ad3e3083
treeffb259f65762e273aedb06e65bd167db8f57486f
parent5126bc3ab37127df67abe1d161ee68ccb4f4b91b
xprtrdma: Memory allocation should be allowed to fail during connect

An attempt to establish a connection can always fail and then be
retried. GFP_KERNEL allocation is not necessary here.

Like MR allocation, establishing a connection is always done in a
worker thread. The new GFP flags align with the flags that would
be returned by rpc_task_gfp_mask() in this case.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c