xprtrdma: Clean up rpcrdma_create_req()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 24 Apr 2019 13:39:05 +0000 (09:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 25 Apr 2019 18:59:44 +0000 (14:59 -0400)
commit1769e6a816dff50d960271eb780e0a40b739b256
tree29acca4325742d88b61dd531b88567709e1def05
parentb2ca473b920dfbaad7c4f9eb5043258ef71f321f
xprtrdma: Clean up rpcrdma_create_req()

Eventually, I'd like to invoke rpcrdma_create_req() during the
call_reserve step. Memory allocation there probably needs to use
GFP_NOIO. Therefore a set of GFP flags needs to be passed in.

As an additional clean up, just return a pointer or NULL, because
the only error return code here is -ENOMEM.

Lastly, clean up the function names to be consistent with the
pattern: "rpcrdma" _ object-type _ action

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