linux/include/rdma
Matan Barak fd3c7904db IB/core: Change idr objects to use the new schema
This changes only the handlers which deals with idr based objects to
use the new idr allocation, fetching and destruction schema.
This patch consists of the following changes:
(1) Allocation, fetching and destruction is done via idr ops.
(2) Context initializing and release is done through
    uverbs_initialize_ucontext and uverbs_cleanup_ucontext.
(3) Ditching the live flag. Mostly, this is pretty straight
    forward. The only place that is a bit trickier is in
    ib_uverbs_open_qp. Commit [1] added code to check whether
    the uobject is already live and initialized. This mostly
    happens because of a race between open_qp and events.
    We delayed assigning the uobject's pointer in order to
    eliminate this race without using the live variable.

[1] commit a040f95dc8
	("IB/core: Fix XRC race condition in ib_uverbs_open_qp")

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-05 13:28:04 -04:00
..
ib.h sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h> 2017-03-02 08:42:31 +01:00
ib_addr.h net-next: treewide use is_vlan_dev() helper function. 2017-02-06 16:33:29 -05:00
ib_cache.h RDMA/core: export ib_get_cached_port_state 2017-01-12 23:00:00 -05:00
ib_cm.h rdma_cm: add rdma_reject_msg() helper function 2016-12-14 11:38:28 -05:00
ib_fmr_pool.h
ib_hdrs.h IB/hfi1, qib, rdmavt: Move AETH defines to rdma/ib_hdrs.h 2017-02-19 09:18:44 -05:00
ib_mad.h
ib_marshall.h
ib_pack.h
ib_pma.h
ib_sa.h RDMA/core: Fix incorrect structure packing for booleans 2017-01-12 12:21:51 -05:00
ib_smi.h
ib_umem.h
ib_umem_odp.h IB/umem: Update on demand page (ODP) support 2017-02-14 11:41:17 -05:00
ib_verbs.h IB/core: Change idr objects to use the new schema 2017-04-05 13:28:04 -04:00
iw_cm.h rdma_cm: add rdma_reject_msg() helper function 2016-12-14 11:38:28 -05:00
iw_portmap.h
mr_pool.h
opa_port_info.h
opa_smi.h
rdma_cm.h rdma_cm: add rdma_consumer_reject_data helper function 2016-12-14 11:38:28 -05:00
rdma_cm_ib.h
rdma_netlink.h
rdma_vt.h IB/hfi1, rdmavt: Update copy_sge to use boolean arguments 2017-02-19 09:18:41 -05:00
rdmavt_cq.h
rdmavt_mr.h IB/hfi1, rdmavt: Move SGE state helper routines into rdmavt 2017-02-19 09:18:41 -05:00
rdmavt_qp.h IB/hfi1, qib, rdmavt: Move AETH defines to rdma/ib_hdrs.h 2017-02-19 09:18:44 -05:00
rw.h
uverbs_std_types.h IB/core: Change idr objects to use the new schema 2017-04-05 13:28:04 -04:00
uverbs_types.h IB/core: Add idr based standard types 2017-04-05 13:28:04 -04:00