]> git.baikalelectronics.ru Git - kernel.git/commit
IB: ucontext should be set properly for all cmd & ioctl paths
authorShamir Rabinovitch <shamir.rabinovitch@oracle.com>
Sun, 31 Mar 2019 16:10:03 +0000 (19:10 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 1 Apr 2019 17:55:03 +0000 (14:55 -0300)
commit97dac815a36d4c2c56e1f088bdefba25125d4eec
tree6d98d669c6833a862eff9cec72ca0b243c9c489b
parenta156b2a73b2f3ff167c10837736b03c6c55ccf25
IB: ucontext should be set properly for all cmd & ioctl paths

the Attempt to use the below commit to initialize the ucontext for the
uobject destroy path has shown that the below commit is incomplete.

Parts were reverted and the ucontext set up in the uverbs_attr_bundle was
moved to rdma_lookup_get_uobject which is called from the uobj_get_XXX
macros and rdma_alloc_begin_uobject which is called when uobject is
created.

Fixes: 1e0f0e2ae24b ("IB/uverbs: Add ib_ucontext to uverbs_attr_bundle sent from ioctl and cmd flows")
Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_ioctl.c
include/rdma/uverbs_std_types.h
include/rdma/uverbs_types.h