xprtrdma: Refactor rpcrdma_prepare_msg_sges()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 17 Oct 2019 18:31:44 +0000 (14:31 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 24 Oct 2019 14:30:40 +0000 (10:30 -0400)
commitd6764bbd7763fa9d669bba7fc5a50a4bdd8f591b
tree9cc4bed445ca5b22f8e75d7108358bebacacd440
parentdc15c3d5f16808f7c171b55da6a82a5c0f279647
xprtrdma: Refactor rpcrdma_prepare_msg_sges()

Refactor: Replace spaghetti with code that makes it plain what needs
to be done for each rtype. This makes it easier to add features and
optimizations.

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