]> git.baikalelectronics.ru Git - kernel.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)
commitdfc14695d26f9d8ee9917ccc533557a3a109d048
tree4e14016a04b80d244f4d0ac483382a1223ae9ce4
parent0100d513d43b4a05fe50152b21e9eeb9b92e430e
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