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)
commit9c8f332fbf995dc1d4d30a973d7ad6e1adb56437
treeffb259f65762e273aedb06e65bd167db8f57486f
parent2d77058cce9fbff3d69cc05d4eb695f4ff421c03
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