summaryrefslogtreecommitdiffstats
path: root/crypto/async_tx
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-05-27 08:06:44 +0200
committerRoland Dreier <roland@purestorage.com>2011-10-13 18:20:27 +0200
commitd3d72d909e783d048ee39046aa7b4fa798a4dda8 (patch)
treeb773014148c09565b02ad542295b5c6caa7fd498 /crypto/async_tx
parentRDMA/core: Add XRC QPs (diff)
downloadlinux-d3d72d909e783d048ee39046aa7b4fa798a4dda8.tar.xz
linux-d3d72d909e783d048ee39046aa7b4fa798a4dda8.zip
RDMA/verbs: Cleanup XRC TGT QPs when destroying XRCD
XRC TGT QPs are intended to be shared among multiple users and processes. Allow the destruction of an XRC TGT QP to be done explicitly through ib_destroy_qp() or when the XRCD is destroyed. To support destroying an XRC TGT QP, we need to track TGT QPs with the XRCD. When the XRCD is destroyed, all tracked XRC TGT QPs are also cleaned up. To avoid stale reference issues, if a user is holding a reference on a TGT QP, we increment a reference count on the QP. The user releases the reference by calling ib_release_qp. This releases any access to the QP from a user above verbs, but allows the QP to continue to exist until destroyed by the XRCD. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'crypto/async_tx')
0 files changed, 0 insertions, 0 deletions