]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xprtrdma: Refactor rpcrdma_ia_open()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 11 Apr 2017 17:22:54 +0000 (13:22 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Apr 2017 20:12:20 +0000 (16:12 -0400)
commitfff09594edf5e9b8595a2cefdc07e54b70f81729
treea0c780868cc12ebbcc0132a3f2995be8d0f6d519
parent33849792cbcdae2b04819cfb09fe3dca0a84a11e
xprtrdma: Refactor rpcrdma_ia_open()

In order to unload a device driver and reload it, xprtrdma will need
to close a transport's interface adapter, and then call
rpcrdma_ia_open again, possibly finding a different interface
adapter.

Make rpcrdma_ia_open safe to call on the same transport multiple
times.

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/transport.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h