]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xprtrdma: Refactor rpcrdma_ep_connect
authorChuck Lever <chuck.lever@oracle.com>
Tue, 11 Apr 2017 17:23:18 +0000 (13:23 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Apr 2017 20:12:27 +0000 (16:12 -0400)
commit1890896b4e01e3858db71fa55a8edf85e15f9946
tree4e14016a04b80d244f4d0ac483382a1223ae9ce4
parentbebd031866caa404c522e91bb6fd0c69be04c707
xprtrdma: Refactor rpcrdma_ep_connect

I'm about to add another arm to

    if (ep->rep_connected != 0)

It will be cleaner to use a switch statement here. We'll be looking
for a couple of specific errnos, or "anything else," basically to
sort out the difference between a normal reconnect and recovery from
device removal.

This is a refactoring change only.

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