OSDN Git Service

xprtrdma: Allocate Protection Domain in rpcrdma_ep_create()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 21 Feb 2020 22:00:33 +0000 (17:00 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 27 Mar 2020 14:47:24 +0000 (10:47 -0400)
commit9ba373ee24ea07b60b8c5041cafe88d5796bacef
treea5873649405a847f6696de3ffc14c2824c968f76
parent9144a803df6ca4185238ca343dbb65d8137c036e
xprtrdma: Allocate Protection Domain in rpcrdma_ep_create()

Make a Protection Domain (PD) a per-connection resource rather than
a per-transport resource. In other words, when the connection
terminates, the PD is destroyed.

Thus there is one less HW resource that remains allocated to a
transport after a connection is closed.

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