aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/verbs.c
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-05-24 08:33:46 -0700
committerRoland Dreier <roland@purestorage.com>2011-10-13 09:21:24 -0700
commit53d0bd1e7ff2fc626321f337c609fb76ae5d12c9 (patch)
tree92f117b0356cebeb56c42cc76f0fb7ab84cc779a /drivers/infiniband/core/verbs.c
parentRDMA/verbs: Cleanup XRC TGT QPs when destroying XRCD (diff)
downloadlinux-dev-53d0bd1e7ff2fc626321f337c609fb76ae5d12c9.tar.xz
linux-dev-53d0bd1e7ff2fc626321f337c609fb76ae5d12c9.zip
RDMA/uverbs: Export XRC domains to user space
Allow user space to create XRC domains. Because XRCDs are expected to be shared among multiple processes, we use inodes to identify an XRCD. Based on patches by Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/core/verbs.c')
-rw-r--r--drivers/infiniband/core/verbs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index 8c6da5bda4c6..a6d95e635699 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -1096,6 +1096,7 @@ struct ib_xrcd *ib_alloc_xrcd(struct ib_device *device)
xrcd = device->alloc_xrcd(device, NULL, NULL);
if (!IS_ERR(xrcd)) {
xrcd->device = device;
+ xrcd->inode = NULL;
atomic_set(&xrcd->usecnt, 0);
mutex_init(&xrcd->tgt_qp_mutex);
INIT_LIST_HEAD(&xrcd->tgt_qp_list);