diff options
author | Sean Hefty <sean.hefty@intel.com> | 2011-05-24 19:33:46 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-13 20:21:24 +0400 |
commit | 53d0bd1e7ff2fc626321f337c609fb76ae5d12c9 (patch) | |
tree | 92f117b0356cebeb56c42cc76f0fb7ab84cc779a /drivers/infiniband/core/verbs.c | |
parent | d3d72d909e783d048ee39046aa7b4fa798a4dda8 (diff) | |
download | linux-53d0bd1e7ff2fc626321f337c609fb76ae5d12c9.tar.xz |
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.c | 1 |
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); |