]> git.baikalelectronics.ru Git - kernel.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)
commitf67b2164649f7b70a6d3c38f5d90012aec5078b8
treea0c780868cc12ebbcc0132a3f2995be8d0f6d519
parenta767df1a273237ce7679d420d6c85ff9150b18ae
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